Recoil基础--基础介绍

Intro

This section assumes you have installed Recoil and React. See the Getting Started page for how to get started with Recoil and React from scratch. Components in the following sections are assumed to have a <RecoilRoot /> in the parent tree.
这一章节主要是安装Recoil和React,可以查看开始页如何安装Recoil和React,在下面的章节中,根组件中都会使用<RecoilRoot />组件。
In this tutorial, we’ll be building a simple todo-list application. Our app will be able to do the following:
我们会创建一个简单的todo-list的应用。我们的应用会做到以下几点:

  • Add todo items 添加todo项
  • Edit todo items 开发todo项
  • Delete todo items 删除todo项
  • Filter todo items 过滤todo项
  • Display useful stats 展示state
    Along the way, we’ll cover atoms, selectors, atom families, and the hooks exposed by the Recoil API. We’ll also cover optimization
    这样,我们会很好的覆盖到Atoms,selectors,atom全家桶,以及Recoil API 暴露的hooks。
  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!
  • Copyrights © 2015-2022 Lee
  • 访问人数: | 浏览次数:

请我喝杯咖啡吧~

支付宝
微信