Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Getting Started with Recoil in React

via egghead.io

Overview

Recoil is a new (experimental!) library from Facebook that can handle complex shared data across a large react app.
In this course, we'll create a simple game with React using Recoil, to explore how you can share and update state across an app using Atoms and Selectors.
Recoil is similar to (but different than) Context, Redux, or other shared state libraries (like MobX), but is designed to handle large (and variable) numbers of state that can update without re-rendering your entire app's component tree.

Syllabus

  • Set Up Recoil in a new React App
  • Create Shared State with Recoil in a React App
  • Read a Value from Recoil with useRecoilValue
  • Compute a Value in Recoil Using a Selector
  • Write a Custom Recoil Hook to Reset a Value in the Recoil State
  • Use Async Functions in a Recoil Selector

Taught by

Chris Achard

Reviews

4.6 rating at egghead.io based on 45 ratings

Start your review of Getting Started with Recoil in React

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.