Course / Pro
Sync State Across Components with Recoil in React
Recoil is a brand new state management library for React, developed by Facebook.
Joel Hooks
Recoil is a brand new state management library for React, developed by Facebook.
Recoil works and thinks like React. Add some to your app and get fast and flexible shared state.
This quick collection will get you up and running with Recoil, you're going to learn how to:
- add Recoil to your React project
- create a Recoil atom and use it to store a piece of state
- use
useRecoilStatehook to update an atom - use
useRecoilValueto access value stored in an atom in a read-only fashion - use 🔥
selectors🔥 in order to calculate derived data based on state stored within atoms (this is really powerful!)