React Cheat Sheet (useContext) Hooks #2 - Part 7

Опубликовано: 09 Октябрь 2024
на канале: Hong Ly Tech
264
7

React Context is a way to manage state globally. createContext lets you create a context that components can provide or read. useContext lets you read and subscribe to context from your component.

SUBSCRIBE for more!

Source code:
https://github.com/honglytech/react-c...

Free crash courses:
React JWT Authentication:    • React JWT Authentication - Sign up, L...  
React Redux:    • React Redux Crash Course 2021  
React Redux Saga:    • React Redux Saga Crash Course - Make ...  
React Redux Toolkit:    • React Redux Toolkit Crash Course - cr...  
React Redux Toolkit RTK Query:    • React Redux Toolkit RTK Query | Power...  

More free crash courses:
   • Crash Courses  

React tutorials:
   • React Tutorials  

E-mail: [email protected]
Website: https://honglytech.com
GitHub: https://github.com/honglytech
My course: https://honglytech.com/course

My gears:
Keyboard: https://amzn.to/3klv4L3
Mouse: https://amzn.to/3nJeRBr
Main camera: https://amzn.to/3EeuYyG
Main microphone: https://amzn.to/36al2bb
Main camera mic: https://amzn.to/3UeS51L
Secondary camera: https://amzn.to/3ddGNHL
Secondary microphone: https://amzn.to/3qotmKa

Timestamps:
00:00 useContext Hook
5:46 example using useState
07:51 example using useContext

#react #reactjs #reacthooks