illustration for Sync State Across Components with Recoil in React

Sync State Across Components with Recoil in React

Instructor

Tomasz Łakomy
5m
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.4
969
people completed
Bookmark
Download
RSS

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 useRecoilState hook to update an atom
  • use useRecoilValue to 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!)