Context API Tutorial For Beginners - Using React Hooks

preview_player
Показать описание
In this video I will teach you guys how to use the Context API for State Management in React. We will be using the CreateContext and UseContext hooks to create a context allowing us to manage different states in a React Application.
-
Please leave a comment on what topic you guys want me to cover next!
-
-

Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Tags:
- Context API
- UseContext
- ReactJS Tutorial
- ReactJS and MySQL
- NodeJS Tutorial
- API Tutorial
Рекомендации по теме
Комментарии
Автор

On point thanks man!!
To sum up :
1. create a context.js for a particular group of children who want to access (or share) same states
2. import that context in parent of those grouped components (by grouped components i mean the children who are going to share same states without "prop digging")
3. provide values for that context which can be accessed by the children
4. To access in children destructure the object passed in provider and use useContext(contextName) to get the object passed in the provider

whoooo this ends the summary that i have learnt from this video!!😊

abhcode
Автор

This is absolutely, beyond a shadow of a doubt, the best explanation of this on YouTube.
Thank you for helping me understand it completely in 10 minutes.

frogonajetski
Автор

Thanks for creating this video straight to the point, I was able to implement context in my project in just a few minutes.

stackercoding
Автор

Thanks "SIR", This was the best explanation I found after searching all day....Thank you so much Pedro❤️

apawar
Автор

I struggled so much to find someone explaining it with another example than just the theme example, and very clearly.. THANKS DUDE !!

naspy
Автор

For once I finally understood and implemented context API...you explain so easily and straight to the point, with points to take. Thank you

emegwaonyeka
Автор

Every day you help me in different way, I recived my first task in my job that need to use context, im search in ytb, watch your video, and now I can continuous my task.

pauloricardomaltaleal
Автор

you just saved me 1 hour of my life in 10minutes

AdamElMou
Автор

The fact that you left no comment unanswered made me subscribe. Thanks for making this very simple and digestible KT video.

lngwnd
Автор

I do not know why you are so underrated, You content is amazing, to the point like it should be

adarshnayak
Автор

I saw many tutorials for useContext, but after this tutorial, I understood how to use context API easily. Thank you :)

shubhamrathod
Автор

Why do you need showProfile or setShowProfile when you are setting a username? If a username exists then that means you are logged in

danielroyston-lopez
Автор

Mann you're the best, you don't kow how much I've grown watching your tutorials

deveshb
Автор

brother, I have watch many tutorials on usecontext api. But this one your tutorial is so simple and short. and I get it. thank you

maxmaksum
Автор

This is the best explanation on context api so far. Short, Simple, with application. Super helpful ❤

triumphanazia
Автор

I got my job watching your tutorials ❤️ Thanks bro

toughguy
Автор

I was scaring by the name of context API before watching your video. Finally I've learned. Thanks Dear....

muhammadmohsinhussain
Автор

best explanation, simplest, clearest, absolutely best. Thank you so much !

zaintahir
Автор

Far and away the best video explaining the Context API.

andrewleonardi
Автор

Another wonderful video..just to the point..no nonsense blabla! Really appreciated!

johnnash