A state management library for React.
Recoil is a minimal library that provides an experimental set of utilities for state management with React.
- Minimal and Reactish: Recoil works and thinks like React. Add some to your app and get fast and flexible shared state.
- Data-Flow Graph: Derived data and asynchronous queries are tamed with pure functions and efficient subscriptions.
- Cross-App Observation: Implement persistence, routing, time-travel debugging, or undo by observing all state changes across your app, without impairing code-splitting.
Recoil lets you create a data-flow graph that flows from atoms (shared state) through selectors (pure functions) and down into your React components. Atoms are units of state that components can subscribe to. Selectors transform this state either synchronously or asynchronously.