Use Context to Manage Current User State - Introduction to React #8

Published: 06 November 2022
on channel: NL Tech
3,704
71

The React Context API allows passing data through the component tree without passing it as a prop at every level. It’s frequently used for global state like the current logged in user, themes, and other application-wide preferences. In this video I’ll focus on one of the most common use cases for context – storing information about the current user.

Contents:
0:00 Introduction
0:30 Introducing the Example App
0:50 The Component Tree
1:04 The Problem: Prop Drilling
1:20 The Solution: Context
1:33 Creating a Context
1:49 Setting up the Context Provider
2:23 Using the Context as Consumer
3:02 Passing State with Context
4:15 Abstracting the Context State and Provider
4:45 Conclusion

Email: [email protected]
Twitter:   / nikelaz  
LinkedIn:   / nikola-lazarov  

#react #course


Watch video Use Context to Manage Current User State - Introduction to React #8 online without registration, duration hours minute second in high quality. This video was added by user NL Tech 06 November 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,704 once and liked it 71 people.