Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.

★ 19,400⑂ 1,207👁 1⑃ 1,061● 1,035▤ 26
JavaScriptMITCreated 2020-05-04recoiljs.org/
下载:0.7.70.7.7 ↓0.7.72023-04-11
+0
日增长
19,400
stars
1,207
forks
1
watchers
1,061
prs
1,035
issues
26
releases

README

Recoil ·    

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:

shell
npm install recoil


Or if you're using yarn:

shell
yarn add recoil


Or if you're using bower:

shell
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.

- Code of Conduct
- Contributing Guide

 License

Recoil is MIT licensed.

Top issues

Discussions

Latest release

0.7.7 0.7.7 2023-04-11
Fix potential unhandled promise rejection in useRecoilCallback() (2075)
 Add OSS support for GateKeeper feature toggling via RecoilEnv.RECOIL_GKS_ENABLED (2078)
 Fix resolving suspense of async selectors used with SSR (2073, 1960)
 Fix SSR with some versions of React DOM used with Next.JS 13 (2082, 2086)

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON