Sync State Across Components with Recoil in React

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!)

Instructor

Tomasz Łakomy

Frontend Engineer at Stedi, building Cloudash. His interests include React, AWS, testing, Svelte, VR, app performance and... jQuery, which he still thinks is the best library ever.

Learn about Tomasz's story with egghead.

Course content (3 lessons)

    illustration for Sync State Across Components with Recoil in React