Why You Should Be Using React Context // React Context Hooks Tutorial

preview_player
Показать описание
Learn How And When To Use The React Context Hook useContext With This React Context Hooks Tutorial. Discover How to Setup React Context Hook with React Context and Set Up A Real Example Using AWS Amplify And Amazon Cognito To Persist a User Throughout Your Application.

React Context and the useContext Hook provide a way to share values between components, without having to explicitly pass a prop through every level of the tree. This avoids a problem known as prop drilling.

React Context is designed to share data that is considered global; like the current user, a UI theme, or local preferences; such as if the user selects dark mode or light mode.

Essentially, React Contexts allow you to store some value within a parent component, and every child inside that parent can access the value.

Рекомендации по теме
Комментарии
Автор

Ashutosh here, greatly explained. keep posting. Have a great day!!!

CS-ycpy
Автор

please make a video on useCallback hook

Troy-olfk
Автор

Have you used context api in big applications?
If yes would you give me any tips to how to use it and how we can implement it usinf the best practices of it

mooder
Автор

can you make a video like this on AWS Cognito with Next.Js SSR

CS-ycpy