Recoil README

The project's README from github.com/facebookexperimental/Recoil. As one markdown file: README.md.

Recoil · NPM Version Node.js CI GitHub license Follow on Twitter

Recoil is an experimental state management framework for React.

Website: https://recoiljs.org

Documentation

Documentation: https://recoiljs.org/docs/introduction/core-concepts

API Reference: https://recoiljs.org/docs/api-reference/core/RecoilRoot

Tutorials: https://recoiljs.org/resources

Installation

The Recoil package lives in npm. Please see the installation guide

To install the latest stable version, run the following command:

npm install recoil

Or if you're using yarn:

yarn add recoil

Or if you're using bower:

bower install --save recoil

Contributing

Development of Recoil happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Recoil.

License

Recoil is MIT licensed.

Recoil (facebookexperimental/Recoil)

Searching Database…

19.4K ·GitHub
archived
这是什么?Recoil 是一个面向 React 应用的实验性状态管理库。它用来补充原生 React 较难实现的能力,例如共享的派生状态和细粒度更新,同时与 React 的最新特性保持兼容。
我要采用一个框架,还是只在 React 上加一个库?它是一个库,而不是用来替代 React 的框架。你继续编写普通的 React 组件,并安装 Recoil 的 npm 包,就能与 React 一起管理状态。
我要如何把它添加到项目中?用 npm 安装 'recoil' 包;如果你更习惯,也可以使用 yarn 或 bower。
除了 React 本身,我还需要别的东西吗?除了 React 之外无需额外的运行时配置。Recoil 的设计就是接入现有的 React 应用,并与 React 的最新特性保持兼容。
这个项目还在维护吗?已经不再维护。该仓库已归档,不再积极开发,也不再接收新功能。请把它当作一个已冻结的项目,而不是有持续支持的项目。
README 为什么把它称为“实验性”的?项目本身被标注为实验性,意味着其 API 和使用模式仍在探索之中,并不保证适用于长期的生产环境。这也与它后来被归档的情况相吻合。
Recoil 依赖哪些内部组件?在底层,它使用 'hamt_plus'(一个持久化哈希映射)和 'transit-js' 等库来实现数据结构,而不依赖其他任何外部状态框架。
它支持 TypeScript 吗?支持。仓库提供了一个 'test:typescript' 脚本,用 dtslint 对 TypeScript 类型定义进行测试,因此 Recoil 自己提供并测试其 TS 类型。
Size
48.7 MB
Stars
19.4K
Age
6y
Commits · 90 Days