SP21 Web Apps: 30 - Using React Context to Share User Across Components

Опубликовано: 01 Июль 2026
на канале: Michael Hadley
277
7

In this video, we optimize and refactor our log in system so that there is a single source of truth for the user state. To do this, we learn about React Context, which is a built-in mechanism in React to share data across your React components.

=== Relevant Links ===
Playlist:    • SP21 Web Apps  
Next video:    • SP21 Web Apps: 31 - Planning Out the React...  
React useContext Docs: https://reactjs.org/docs/hooks-refere...
How to Use Context Effectively: https://kentcdodds.com/blog/how-to-us...