React Context API Tutorial | Quick and Easy

  Рет қаралды 102,805

developedbyed

developedbyed

2 жыл бұрын

Check out my courses to become a PRO!
developedbyed.com/
React Context API allows us to manage and organize our react state in an easy way without the need to to prop drilling and bloating our components with methods and state.
This is a quick and simple tutorial on how to get up and running with React Context Api.
🎁Support me on Patreon for exclusive episodes, discord and more!
/ dev_ed
🛴 Follow me on:
Twitch: / developedbyed
Twitter: / developedbyed
Instagram: / developedbyed
Github: github.com/developedbyed/
#react

Пікірлер: 179
@rapianopenaldo1669
@rapianopenaldo1669 2 жыл бұрын
Ed you are an amazing human being first of all, and i absolutely love your colorful personality and love the way you teach everything in a simple manner by doing projects
@ndahayokevin7626
@ndahayokevin7626 2 жыл бұрын
he is
@someshkardeguddi4217
@someshkardeguddi4217 8 ай бұрын
pessi
@josephb7055
@josephb7055 2 жыл бұрын
This is the best explanation I've seen on Contexts. The pace and the info were spot on. As always, good content Ed!
@HaynesX
@HaynesX 10 ай бұрын
This is a perfect tutorial, and different to the ones I've watched regarding context. You keep it simple, and your example with a basket is extremely useful too. Very practical. You also showed updating the context via state. Thank you!
@alirezaebrahimi8384
@alirezaebrahimi8384 2 жыл бұрын
The best explanation on Context, under 20min just saved many hours.
@swayhoward6601
@swayhoward6601 Жыл бұрын
This was by far the best video on this ever. This was the best visual example and easy to understand. Thank you so much 😌
@willw4096
@willw4096 Жыл бұрын
The analysis of the DOM structure at 4:10 is really helpful. Thanks!
@nelsonndukwe7274
@nelsonndukwe7274 Жыл бұрын
This is just the best, I am literally crying right now. Thanks Ed
@imehusoro4222
@imehusoro4222 2 жыл бұрын
You're the best, Ed, seriously. Please never stop
@MDKohaku
@MDKohaku 2 жыл бұрын
Thank you Ed, always with SIMPLE explanations
@szymonrojek6480
@szymonrojek6480 Жыл бұрын
Great content. Thanks Ed. Also, we can export useContext from our context file plus add basic validation just to check our provider when provider has not been created. It is good idea because we do not have to all the time import useContext from react but basically call our custom hook 😃
@sairohit5510
@sairohit5510 Жыл бұрын
Brilliant concept! Never saw react like this man, u rock!
@danielluna7648
@danielluna7648 2 жыл бұрын
Exactly what I needed. Not only did I learn something, but I laughed out loud at the Michael Jordon stop it cut.
@salahaldinedouard5299
@salahaldinedouard5299 Жыл бұрын
I have been trying to learn the context api for about a 3 weeks now but in your 20 mins video I understand perfectly thanks soooo much
@sean02345
@sean02345 Жыл бұрын
You are amazing at explaining things and your personality makes you very enjoyable to watch.
@sthefanocarvalho2823
@sthefanocarvalho2823 2 жыл бұрын
Thank you for the clear and concise explanation :) Exactly what I needed!
@danielChibuogwu
@danielChibuogwu Жыл бұрын
I really love your teaching method Ed, and thanks for this tutorial, it was really good and helpful.
@blankataslamiceska2293
@blankataslamiceska2293 2 жыл бұрын
The best explanation I came across. Thank you!
@grapefruitarts9926
@grapefruitarts9926 2 жыл бұрын
@Dev Ed: Great video to understand the concept of the Context API easily. I would love to get another, slightly more advanced scenario where we have the following: - Public Routes - Private Routes (can be accessed after login) - Creating a Context which is only available for the pages/ components rendered with the "Private Routes" Thanks a lot in advance and best regards, Grapefruit
@nielslouwes7695
@nielslouwes7695 2 жыл бұрын
You just need to use the context on only the pages that you consider private routes.
@pozda007
@pozda007 Ай бұрын
This is what those videos should be - explained like I'm 5YO! Super easy, short, useful and above all valuable!
@RC-zf7hp
@RC-zf7hp 2 жыл бұрын
Thank you for explaining it simply!
@gregdotlola
@gregdotlola 2 жыл бұрын
Thank you, ed. in fact, thank you to all of Romania for your courage amid crisis.
@safffronblood
@safffronblood 2 жыл бұрын
Ed you are really amazing explainer. Love the way you teach and really simple words you explain. Love from India 👍
@nadyamumtazah9431
@nadyamumtazah9431 Жыл бұрын
thankyou ed, you are my lifesaver
@diegoavendanohernandez9908
@diegoavendanohernandez9908 Жыл бұрын
Loved it, what an awesome example
@arthurmiranda8896
@arthurmiranda8896 Жыл бұрын
Great explanation, i finally got it. Thanks a lot!
@MrArod1207
@MrArod1207 2 жыл бұрын
Best Explination Ever. Could you possibly do another simple Redux video? Best teacher on youtube
@deFrontComOFer
@deFrontComOFer 2 жыл бұрын
nice tutorial ed, well explained, thanks a lot bro
@trevonallen2946
@trevonallen2946 Жыл бұрын
amazing breakdown thank you
@wahidstudios
@wahidstudios Жыл бұрын
easy to understand. tank you Ed
@indikawijesinghe
@indikawijesinghe Жыл бұрын
this is a great video to understand context api. thanks ed
@muhammadfaisaljafri1932
@muhammadfaisaljafri1932 Жыл бұрын
That's great. You really made it very easy. Thanks very much.
@richthekid7522
@richthekid7522 Жыл бұрын
We need a full react context video Ed🙏🙏
@habeshawav3978
@habeshawav3978 Жыл бұрын
This video is pure GOLD
@fati_bint
@fati_bint Жыл бұрын
This is well explained. Thanks Ed
@user-ss6xx3vq5n
@user-ss6xx3vq5n 5 ай бұрын
Very good tutorial. Thank you
@belvederepapi7495
@belvederepapi7495 10 ай бұрын
Nice example. Great explanation, thank you!
@pablopikaso9161
@pablopikaso9161 Жыл бұрын
Thanks! This video really helped me a lot!
@mma-dost
@mma-dost Жыл бұрын
Great tutorial !!
@rukundojoseph2885
@rukundojoseph2885 Жыл бұрын
thank you man you just helped me out big time.
@enockomondi6588
@enockomondi6588 2 жыл бұрын
Thanks for this great video. It is an eye opener.
@theshubhagrwl
@theshubhagrwl 2 жыл бұрын
This was simple and time saving :)
@jamezjaz
@jamezjaz Жыл бұрын
Amazing content here :) Very helpful. Thanks for sharing
@SatyamWakchaure
@SatyamWakchaure 2 жыл бұрын
this really an best explanations I've been looking for!!😍 React Context API : Cleared ✅
@kickflipz
@kickflipz 10 ай бұрын
Thank you so much Ed 😊
@Jaracara11
@Jaracara11 2 жыл бұрын
Excellent tutorial!
@anjanhr1614
@anjanhr1614 Жыл бұрын
Wow man your explanation is so beautiful. Thanks man. Love from India ❤️
@YouTubeSucksAss2
@YouTubeSucksAss2 2 жыл бұрын
Ed you really have roled up your sleeves!🙏😎✨👍
@trimatriktorongo
@trimatriktorongo 2 жыл бұрын
you are the boss , in some little codes make understand the essence of whole things , thanks a lot , hat's of man !!
@kevinderawy481
@kevinderawy481 2 жыл бұрын
Thank you for this bro. Your awesome 😁😁
@AdrienFloor
@AdrienFloor 2 жыл бұрын
That was awesome, thank you !
@holup5035
@holup5035 Жыл бұрын
Thanks, now i got it :)
@codecuts93
@codecuts93 2 жыл бұрын
Thank you Ed sooo much you are an amazing 💜💜
@sainimanveer3479
@sainimanveer3479 2 жыл бұрын
Sir you are really amazing.. The way you describe... 👍👍👍
@sksabbirhossain2686
@sksabbirhossain2686 Жыл бұрын
It's a really good video. now I have no confusion about context API and how I will use this.... love from bangladesh.😍😍😍😍😄😍😍
@cosanostraytc1030
@cosanostraytc1030 2 жыл бұрын
Good work man!!!
@devlouis6929
@devlouis6929 3 ай бұрын
Absolute best❤
@digvijaysinhchauhan3664
@digvijaysinhchauhan3664 Жыл бұрын
An amazingly( i dont't know if that word exists but ) easy explanation of context API
@nicowindows4589
@nicowindows4589 2 жыл бұрын
Thanks Ed!
@amandanunes7616
@amandanunes7616 2 жыл бұрын
Ed, you make everything super easy. Congrats and thank you!
@nurhadimaulana4366
@nurhadimaulana4366 Жыл бұрын
this is the best. i love it.. thank you 😊
@mdmahmudulhasan6448
@mdmahmudulhasan6448 2 жыл бұрын
nice stuff !!
@saadshaikh246
@saadshaikh246 2 жыл бұрын
Hello Ed ! Should we expect a video on Redux anytime soon? Really love your way of explaining ☺️
@wasifahmedshaikh1814
@wasifahmedshaikh1814 2 жыл бұрын
it is already there in his channel
@Pain-lr1cm
@Pain-lr1cm 7 ай бұрын
what a G nice explanation man
@abdullahifahm6076
@abdullahifahm6076 Жыл бұрын
Great course. Would be cool if you could include a link to the repo
@oncoding4520
@oncoding4520 Жыл бұрын
Love your video
@unknownman5296
@unknownman5296 2 жыл бұрын
Nice video man!! Please make more vanilla js projects !! Thanks
@ndbroo
@ndbroo Жыл бұрын
Thanks bro🎉
@sebastiennetgmail
@sebastiennetgmail 4 ай бұрын
Thanks from south of France
@muxammad2777
@muxammad2777 2 жыл бұрын
from 8.33 . 8 minutes 33 seconds. thank you Dev Ed it's very helpfull video
@israelmitolu5365
@israelmitolu5365 2 жыл бұрын
Great video as always, Ed. Kindly share the Github code
@user-gb2lj3zm7j
@user-gb2lj3zm7j 8 ай бұрын
thank you bro
@sumanthprabhu11
@sumanthprabhu11 2 жыл бұрын
Thank you Ed sooo much If you can please make a Tutorial on REDUX also 😊
@hassaneoutouaya
@hassaneoutouaya 2 жыл бұрын
Thank you !
@alexforw5545
@alexforw5545 2 жыл бұрын
Thanks, my God! Pretty important and funny video
@goutamprasadmohapatra6363
@goutamprasadmohapatra6363 2 жыл бұрын
Thanks you so much Ed. I have gone through a lot of videos just to understand context API this was the easiest one to understand
@General_Aladeen
@General_Aladeen 2 жыл бұрын
you make it so easy. you really understand the concept well. Thank you.
@user-gu2uf2cl7l
@user-gu2uf2cl7l 2 жыл бұрын
hi, thank you for video, what the color theme you using in vscode?
@kalahari8295
@kalahari8295 2 жыл бұрын
Intro 🔥😂❤️
@user-fp3ju5jb9g
@user-fp3ju5jb9g Жыл бұрын
thx!!
@philipmwangi5270
@philipmwangi5270 2 жыл бұрын
Hey Ed, could you also do react redux and react query. Kindly
@nitras.design
@nitras.design 2 жыл бұрын
What substance do you snort?
@inocent35
@inocent35 2 жыл бұрын
Thanks Ed. By the way friends on internet it starts at 9:00
@Metovski
@Metovski 2 жыл бұрын
Which theme was used in vscode?
@GoodGuyHeffy
@GoodGuyHeffy 10 ай бұрын
I have all my data in a json file, and then mapped through that for product page, and individual pages for product. Do I need to put that data in the context file? I cant get it to work on my existing project and im not sure if thats the reason. Very new to context tho so I might just be dumb lol.
@spacepacehut3265
@spacepacehut3265 2 жыл бұрын
Hey Ed please do a full stack project someday 😃 with vanilla JS and Backend: Node.js, MongoDB...
@tonyy.9855
@tonyy.9855 2 жыл бұрын
The only video that actually helped me building my cart feature. Thank you sir! Would you also make a tutorial for the payment feature too?
@kcapt96
@kcapt96 2 жыл бұрын
Is there a github page for this project? Thanks great video!
@pcost
@pcost 2 жыл бұрын
How Context is different or better than using Redux itself?? Thanks for the video!!
@joshuaeirman2197
@joshuaeirman2197 11 ай бұрын
Thanks for the video, I am getting : Invalid hook call. Hooks can only be called inside of the body of a function component. It is indeed in a function. Any understanding of what this could mean?
@Djinn667
@Djinn667 2 жыл бұрын
Is there a way to do this in typescript? I seem to be having a lot of trouble with the types here.
@jbaliamine921
@jbaliamine921 2 жыл бұрын
thank you degla
@alexissantos5266
@alexissantos5266 Жыл бұрын
Hi, I have a question, if you press crtl + f5 you don't lose the items saved in the cart? because that happens to me D: xd maybe it is a very silly question :C. Anyway, excellent explanation :)
@morpheusmatrix1073
@morpheusmatrix1073 Жыл бұрын
Hi, any coupon code for your creative react course ?
@dugsiiye
@dugsiiye 2 жыл бұрын
Simple as That :)
@princev4387
@princev4387 2 жыл бұрын
I just miss the facecam, and your happy, authentic smile.
@adiletnasirov4413
@adiletnasirov4413 Жыл бұрын
Molodes bratan 👍
@daryazat8049
@daryazat8049 2 жыл бұрын
great:3
@Lissaleggz
@Lissaleggz 2 жыл бұрын
I never said this but thank you for helping me learn react and landing jobs.
@damyvegaleiva
@damyvegaleiva Жыл бұрын
Thank you. Which vs code theme is that ?
@MultiPlayerHardcore
@MultiPlayerHardcore Жыл бұрын
Material Theme Palenight
@stevedthecoder
@stevedthecoder 2 жыл бұрын
Is this code available on the provided GitHub? I have been checking for atleast 1 hr now. Someone help!
Learn React Hooks: useContext - Simply Explained!
15:46
Cosden Solutions
Рет қаралды 130 М.
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 32 МЛН
小女孩把路人当成离世的妈妈,太感人了.#short #angel #clown
00:53
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 25 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4,9 МЛН
HTMX + GO 15 Minute Quickstart (For Javascript Devs)
16:59
developedbyed
Рет қаралды 16 М.
🚀 useContext, Context Provider, etc. - All about Context API in React
36:31
Studytonight with Abhishek
Рет қаралды 2,5 М.
Context API in react | get the concept
29:00
Hitesh Choudhary
Рет қаралды 42 М.
Learn Sass In 20 Minutes | Sass Crash Course
19:42
developedbyed
Рет қаралды 926 М.
React Hooks Crash Course (useMemo, useCallback and more).
31:49
developedbyed
Рет қаралды 81 М.
Redux For Beginners | React Redux Tutorial
39:43
developedbyed
Рет қаралды 1,2 МЛН
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 30 МЛН
🔥Идеальный чехол для iPhone! 📱 #apple #iphone
0:36
Не шарю!
Рет қаралды 1,3 МЛН
После ввода кода - протирайте панель
0:18
Какой ПК нужен для Escape From Tarkov?
0:48
CompShop Shorts
Рет қаралды 267 М.
#miniphone
0:16
Miniphone
Рет қаралды 3,5 МЛН