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