illustration for Sync State Across Components with Recoil in React
pro

Sync State Across Components with Recoil in React

Instructor

Tomasz Łakomy

5m closed-captioning
·
3 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.4
975
people completed
Published 5 years ago
|
Updated 4 years ago

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

What you'll learn:

  • Add Recoil to your React project
  • Create a Recoil `atom` and use it to store a piece of state
  • Use `useRecoilState` hook to read and write an atom
  • Use `useRecoilValue` to access the 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!)

Course Content

5m • 3 lessons

    You might also like these resources:

    illustration for Getting Started with Recoil in React
    Chris Achard ・16m・Course

    In this collection, you'll create a simple game with React using Recoil, to explore how you can share and update state across an app.

    illustration for Manage React State with Recoil
    Yoni Weisbrod ・24m・Course

    Start with the basics of state management and dive further into the selector API, as well as learning different strategies for handling synchronous and asynchronous Selectors

    illustration for React State Management Expert Interviews
    Joel Hooks ・7h 49m・Podcast

    This is a series of videos where you'll find part interview and part screen share with experts. They focus on React, but the underlying principles are valid for UI work in general.