Skip to content
JS

React Context for State Management

Course on egghead by Dave Ceddia

View on egghead (opens in a new tab)
36 min
LengthVideo runtime
Subscription
Price modelegghead plan
12
Lessons
4.6
Rating out of 551 ratings on egghead
Dec 2018
Published14 Dec 2018

About this course

Description from egghead

In many cases, teams reach for Redux as the de facto choice for state management. But sometimes, Redux is overkill. In those cases, the React Context API might suit your needs perfectly. In this course, we’ll build a simple email client using the React Context API to pass data throughout the app. You’ll learn how to create a context, how to pass data deeply through an app without manually passing props all over the place, and how to group related data and logic using simple wrapper components. We’ll also cover practical applications like using Context to display and manage notifications, how to maximize performance with Context, and how to test the components that use it to ensure your app is working properly.

What it covers

12 lessons
  1. 1Introduction to React Context for State Management
  2. 2Avoid passing props deeply by using React Context
  3. 3Pass Data With a Callback Through React Context
  4. 4Hide the Implementation Details of a Context Provider
  5. 5Use Multiple React Context Providers in the Same App
  6. 6Use a React Context Consumer Outside of the Matching Provider
  7. 7Use React Context to Display Notifications
  8. 8Use contextType to Consume Context in a React Class Without a Consumer
  9. 9Use the useContext Hook to Consume Context in Function Components
  10. 10Test a Component That Uses a React Context Consumer
  11. 11Test a Component That Uses a React Context Provider
  12. 12Performantly Render a Large List of Items with React Context

Similar React courses

  1. Build Virtual Reality Experiences Using React VR

    egghead · Nik Graf · 10 lessons · 3.6 from 2 ratings · Aug 2017

    36 minSubscription
    egghead103.6 (2)Aug 2017
  2. Add Internationalization (i18n) to a React app using React Intl

    egghead · Damon Bauer · 11 lessons · 5.0 from 3 ratings · Jul 2017

    38 minSubscription
    egghead115.0 (3)Jul 2017
  3. Building Serverless Web Applications with React & AWS Amplify

    egghead · nader dabit · 8 lessons · 4.3 from 14 ratings · Feb 2019

    34 minSubscription
    egghead84.3 (14)Feb 2019
  4. Learn React Router v5

    Codecademy · 1 lessons · Jan 2023

    Beginner1 h
    Codecademy1Jan 2023
  5. Beginner1 h
    Codecademy2Oct 2022
  6. Beginner1 h
    Codecademy1Oct 2022
  7. Build Your First React Website

    Coursera · Harrison Kong · Jun 2020

    Intermediate1 h 30 min
    CourseraJun 2020
  8. Intermediate1 h 30 min
    CourseraSept 2020

A hyphen means the provider's catalogue does not state the value.

Same topic, nearest in length, up to three from any one provider.

Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.

    Compare