Learn React Hooks: useContext - Simply Explained!

  Рет қаралды 196,229

Cosden Solutions

Cosden Solutions

Күн бұрын

Пікірлер: 320
@cosdensolutions
@cosdensolutions 9 ай бұрын
Hope you enjoyed the video! I also have a really cool and unique course that will teach you way more than this video. You'll learn how to build an actual complex project with React. It's called "Project React" and you can find it at cosden.solutions/project-react. Also, I have a free weekly newsletter called "Import React" with tutorials, news, and cool stuff about React! You can sign up at cosden.solutions/newsletter?s=ytc
@mikoajkulczynski5213
@mikoajkulczynski5213 Жыл бұрын
Thank you for the content. You have the gift to talk about coding in a simple way.
@cosdensolutions
@cosdensolutions Жыл бұрын
thank you for the kind words!
@GeraldPajulas
@GeraldPajulas 11 ай бұрын
Thank you. I've been learning React for about 4 days and I was confused about the useContext and createContext, but your video explains it well. Thank you.
@khairulfahim-j9o
@khairulfahim-j9o 5 ай бұрын
did you complete your react journey?
@osmankain1508
@osmankain1508 9 ай бұрын
Wow you're a perfect teacher and programmer thanks for the time that you spent for this amazing content
@shubhankarvalimbe5286
@shubhankarvalimbe5286 Жыл бұрын
Great tutorial! I was so confused about how Context works, every other creator complicates it too much. Thank you for simplifying it. Just subbed!
@cosdensolutions
@cosdensolutions Жыл бұрын
makes me happy to hear!
@mo_i_nas
@mo_i_nas Ай бұрын
I rarely subscribe to any channels, but I owe it to you because what you taught me in 15 minutes will make a huge impact in my development. so thank you
@VsEvil
@VsEvil 10 күн бұрын
same!
@omobolanleayobami4998
@omobolanleayobami4998 5 ай бұрын
I have seen a lot of videos on context but this is the best. easy to understand and follow through. thank you.
@David-eb8lh
@David-eb8lh 4 ай бұрын
Clear explanations with no "fluff!
@marshallfungai3033
@marshallfungai3033 Жыл бұрын
Thanks man, been watching your videos for the last 7 days. Practicing for mid-senior dev job... Now I feel like a junior dev 😁, because of all the content I learnt. I "was" a "I can do it, but I can not explain it" person. But the upside is now I "REALLY" know what to do. Just subscribed. And we need more videos on testing.
@HR-pz7ts
@HR-pz7ts 10 ай бұрын
It's amazing you also taught how to deal with problems and showed proper way to code and handle potential errors.
@Caiocsilveira
@Caiocsilveira 4 ай бұрын
1:34 that was genious and I subd immediately. Nice work!
@theppiwatkomolwat4429
@theppiwatkomolwat4429 Жыл бұрын
1:31 This part of the code worked; I have now subscribed!
@cosdensolutions
@cosdensolutions Жыл бұрын
☺️
@prabhanshugupta9361
@prabhanshugupta9361 3 ай бұрын
I watched you before because I have already subscribed some of coding channels but I watched your single video with all of my focus and then I did a subscribe to a channel which was your channel and started watching another video from your channel... Thank You !
@franbrankovic3617
@franbrankovic3617 Жыл бұрын
After this video you really don't need to watch another video about react useContext. This was excellent video.
@camilotorresf1
@camilotorresf1 Жыл бұрын
This was a really good explanation. I took notes and later was able to replicate a similar example. I now understand the useContext hook a lot better. I'm just starting with React and this is really my first application, although I work with a team in a project that already have a lot of react. I expect to become more proficient in React to really be able to work on that project. Keep the good work, I hope you get a lot of subscribers soon.
@cosdensolutions
@cosdensolutions Жыл бұрын
Really happy to hear that dude! You're going to do great ☺️ thank you for the kind words!
@reallegendcode
@reallegendcode Жыл бұрын
@@cosdensolutions please when are going to do a video on HOC
@prshendra
@prshendra 3 ай бұрын
It's like eating a tasty food for the brain. Your presentation and words used is really easy to understand and not verbose. Liked and subscribed.
@seelvek6550
@seelvek6550 3 ай бұрын
Great explanation! I am new to React and your Hook series are really helpful to me. As I also do not have much time to go over everything and this is clear, on point and very concise. Thank you 🙇
@VsEvil
@VsEvil 10 күн бұрын
I have subscribed since the very first video I had the luck to find and watch from you 😃. You explain everything very clear and understandable. Thanks for sharing your knowledge.
@fg0611
@fg0611 6 ай бұрын
Bro thank you for this video! amazing. I have an interview in 1 hour and it's main thing is knowing about react context!
@michaelkroll6913
@michaelkroll6913 3 ай бұрын
Thank you very much for your video. I finally cleaned up my context implementation and were able to get rid of the question marks 🙂
@soduno596
@soduno596 7 ай бұрын
you where one of the only youtubers who actually got me to subscribe to your channel. Nice way of implementing the idea 😃. And fantastic tutorials, crystal clear.
@yongdiamond2301
@yongdiamond2301 3 ай бұрын
Thanks for content it get me out of props drilling and gaining to know the power of the useContext and customHook.
@thatChillLife2037
@thatChillLife2037 Ай бұрын
I'm learning how to avoid prop drilling--this helped so much! Thank you :)
@AntNZ
@AntNZ Жыл бұрын
Wow! Such a excellent explanation and with examples too. Well done 👏👏👏👏
@cosdensolutions
@cosdensolutions Жыл бұрын
Glad you enjoyed it! 🤙
@shawn.builds
@shawn.builds 8 ай бұрын
been loving the react tutorials man! dont think anyones ever explained context so simply :)
@jay-kv6wn
@jay-kv6wn Жыл бұрын
I hope your videos go viral soon like they should. You are doing a great work with your explanations
@cosdensolutions
@cosdensolutions Жыл бұрын
Haha imagine going viral for React 😅 would love it!
@AhmedHuzain
@AhmedHuzain Жыл бұрын
"If you watch this hook video, you'll probably never need to watch another" This is so true! You explain it so well. Thank you!
@_romeopeter
@_romeopeter 7 ай бұрын
This was straight forward. Thank you for throwing in the extra error handling method as well 🔥
@YisneySoto
@YisneySoto Жыл бұрын
Great, thanks. It's my first Context video and I think I got it at the first time because it's so well explained, of course having used Redux before makes this easier to understand.
@cosdensolutions
@cosdensolutions Жыл бұрын
glad to hear it!
@brNoMundo123
@brNoMundo123 10 ай бұрын
Sou desenvolvedora Júnior e seus vídeos estão me ajudando muito a me desenvolver 🚀
@syedayanata9765
@syedayanata9765 Жыл бұрын
I watched many videos and still did not understand context but this video helped me a lot.
@cosdensolutions
@cosdensolutions Жыл бұрын
you got this
@homemadebymiko
@homemadebymiko 2 ай бұрын
Kept your word! Definitely last video I'll need on this concept.
@ericoliveira1
@ericoliveira1 Ай бұрын
Best explanation about Context API. Thanks.
@Chris-by8tg
@Chris-by8tg 11 ай бұрын
This was the clearest explanation I've seen. Thank you!
@reallegendcode
@reallegendcode Жыл бұрын
Top-notch explanation. Manifesting 100k subscribers by end of this year
@garudaphoenix5479
@garudaphoenix5479 Жыл бұрын
Thanks for this great and clear explanation with a lot more edges. Hope you will get 1 million subs soon. Tbh, You deserve it.
@cosdensolutions
@cosdensolutions Жыл бұрын
Thanks a lot 🤙
@serenaeramo2296
@serenaeramo2296 2 ай бұрын
Thank you very much, with you I can understand the impossible
@wekesirken6961
@wekesirken6961 Жыл бұрын
That was some good explanation, you made contexts seem obvious...Appreciated
@jijocleetus
@jijocleetus 11 ай бұрын
Great one with context, i like the way you handled the undefined scenario. Thanks for the tutorial.
@mostinho7
@mostinho7 6 ай бұрын
Done thanks! Wrap useContext hook in a custom hook to handle when the context is null (if component didn't have provider up in the tree when it should have and tried to use the context hook)
@mgx49
@mgx49 9 ай бұрын
No doubt I won't need to watch another React Context API video! [Subscribed]
@НатальяКостоломова-ъ5г
@НатальяКостоломова-ъ5г Жыл бұрын
I speak another language, but I'm happy to find this video. Thanks!
@cosdensolutions
@cosdensolutions Жыл бұрын
Working on adding translated captions to all videos soon!
@myothiha1168
@myothiha1168 Жыл бұрын
best explanation ever!🤩
@Aiexpertise-ft9ec
@Aiexpertise-ft9ec 6 ай бұрын
I grabs those points clearly, thanks dude.
@jasminewu7324
@jasminewu7324 24 күн бұрын
Great explanation!
@Елена-б6в3ж
@Елена-б6в3ж 4 ай бұрын
Thank you! It's so clear
@sudiptobose8296
@sudiptobose8296 9 ай бұрын
Fantastic tutorial. I really appreciate it. 😊
@rmc1579
@rmc1579 Жыл бұрын
great explanation. I was a little bit confuse when using context and how to implement them.
@tokaqarcivadze5825
@tokaqarcivadze5825 Жыл бұрын
the way you explain react is the best!
@mchisolm0
@mchisolm0 8 ай бұрын
Definitely appreciate your attention to detail and have earned my sub. You helped me understand how I was having trouble with a boilerplate I use that has a useState inside a useEffect. I understand *what* the problem is now (thank you for that video), but I can't figure out what I need to learn to solve it. Thanks for at least helping me get closer.
@jeandedieuiradukunda6079
@jeandedieuiradukunda6079 6 ай бұрын
that's incredibly explained, thank you sir
@ooorayooonyoooo
@ooorayooonyoooo Жыл бұрын
A really underrated channel, well done bro! ⚡❤
@PravinsPhotos
@PravinsPhotos 11 ай бұрын
I really did subscribe at 1:57...good one there😂
@user-gm3lg8gp3m
@user-gm3lg8gp3m Жыл бұрын
I subscribed!! This is a great way to explain the concept + thanks for adding the error handling part 👍
@cosdensolutions
@cosdensolutions Жыл бұрын
🤙
@alexcacereshiraldo3960
@alexcacereshiraldo3960 Ай бұрын
Nice video bro, thanks!!
@thebeastsclips
@thebeastsclips Жыл бұрын
useContext is a great alternative for a bunch of prop drilling with a bunch of useStates as well in the child component as well.
@codehustler8582
@codehustler8582 9 ай бұрын
Amazing Channel for Learning React
@sub_in01
@sub_in01 Жыл бұрын
Bro I really love your content and I learn a lot from you, don't worry about subscribers, they will ultimately come to you as your way of explaining is so very good. Keep uploading contents.
@cosdensolutions
@cosdensolutions Жыл бұрын
thanks for the kind words! 🤙
@mboe94
@mboe94 Жыл бұрын
That subscribe intro you did made me subscribe. Genius.
@RafalTruszkowski-b5t
@RafalTruszkowski-b5t 2 ай бұрын
Ok, that isSubscribed segment actually got me to subscribe lol
@cypherop2608
@cypherop2608 Жыл бұрын
you made it soooooo easy to understand
@Namishkapoor-u4m
@Namishkapoor-u4m 9 ай бұрын
I literally subscribed after seeing your message in the Video
@vampirekabir
@vampirekabir Жыл бұрын
trying to get a grasp of it,nobody taught like u did,i finally get it now ❤❤
@cosdensolutions
@cosdensolutions Жыл бұрын
🤙
@kwasiezor1630
@kwasiezor1630 Жыл бұрын
Thanks for the video bro. Simplified explanation always makes understanding better 😊
@cosdensolutions
@cosdensolutions Жыл бұрын
Glad you found it useful!
@kwasiezor1630
@kwasiezor1630 Жыл бұрын
Yes Indeed. Keep it up 👏
@Jack-ps4jg
@Jack-ps4jg 6 ай бұрын
really nice and simple explanation thank you for making this video
@shivasai7707
@shivasai7707 7 ай бұрын
great explaination on useContext
@HerlonCosta
@HerlonCosta Жыл бұрын
I reall like this explanation. You're very good, god bless you!
@calmmind3160
@calmmind3160 4 ай бұрын
you know im a sub bro, your videos is my goto for react content- one day inshallah i meet you when i build an insane app
@MiltonIsaya
@MiltonIsaya 2 ай бұрын
Great video. Thank you!
@antoninosartori
@antoninosartori Жыл бұрын
And what if User comes from a fetch? Do you put in on the custom hook? How would you handle errors? Thanks for the video
@hanguyenmanh2459
@hanguyenmanh2459 Жыл бұрын
If user come from server state, don't throw error in custom hook, just return user.
@officiallybeingme
@officiallybeingme Жыл бұрын
Home of React well explained Tutorials
@MessiLeo2312
@MessiLeo2312 10 ай бұрын
man, awosome video crystel clear concepts and learned how to write a more safe code(in the pov for debugging)
@glenmccallum7051
@glenmccallum7051 Жыл бұрын
Thanks a lot, this was really helpful. Really great video and great channel
@cosdensolutions
@cosdensolutions Жыл бұрын
glad it helped!
@jojokman
@jojokman 3 ай бұрын
Bro said, let me cook 🔥🔥🔥🔥🔥 awsome explanation 🎉
@CX330Blake
@CX330Blake 6 ай бұрын
thanks man I really understood it. Subscribed already
@MarksmanVallecillo
@MarksmanVallecillo Жыл бұрын
Thanks, man very good video. 10 Stars ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
@marceloleoncaceres6826
@marceloleoncaceres6826 11 ай бұрын
Great video, thanks for sharing your time and knowledge,
@poornasaipilla1620
@poornasaipilla1620 10 ай бұрын
Really use full video thanks for doing ... extending my great full and encouragement .... keep doing well..
@antimrevapati8992
@antimrevapati8992 10 ай бұрын
Great Explanation, Thank you!
@RyS29
@RyS29 Жыл бұрын
Great content, thank you!
@sathirabandara7981
@sathirabandara7981 11 ай бұрын
Great job man. its very helpful !!
@samahgad241
@samahgad241 Жыл бұрын
Realy great explanation,thank you
@Teddyrobinson
@Teddyrobinson 11 ай бұрын
Another great tutorial thanks so much!
@ThomasKanzig
@ThomasKanzig Жыл бұрын
Amazing tutorial. Thanks a lot.
@deshannawarathna6283
@deshannawarathna6283 Жыл бұрын
Thank you man. That is good explanation
@UnfinishedYara
@UnfinishedYara 11 ай бұрын
Thanks man! Crystal clear now!
@Amarichezineddine
@Amarichezineddine Жыл бұрын
Thanks it was very helpful
@shekhtausif2811
@shekhtausif2811 Жыл бұрын
Just make more videos like this on react plz you explain really well
@cosdensolutions
@cosdensolutions Жыл бұрын
Will do!
@Shaheer-xs5os
@Shaheer-xs5os Жыл бұрын
That was such an awesome explanation 👍
@cosdensolutions
@cosdensolutions Жыл бұрын
Thanks 🤙
@Vishal360
@Vishal360 Жыл бұрын
loved ur react tuts.... 🔥🔥🔥🔥🔥🔥🔥🔥
@santiagovelezsaffon
@santiagovelezsaffon 8 ай бұрын
Very well explained !!
@jitujahagirdar613
@jitujahagirdar613 3 ай бұрын
Really good explain
@nogafouz2174
@nogafouz2174 Жыл бұрын
realy thank you but i have a question please which better using context api or redux tookit
@Bilo_7
@Bilo_7 Жыл бұрын
I made an instant subscription 👍
@cosdensolutions
@cosdensolutions Жыл бұрын
🤙
@mark-broomfield
@mark-broomfield Жыл бұрын
Great tutorial thanks. My subwoofer got a serious workout every time you banged the mic though :-)
@cosdensolutions
@cosdensolutions Жыл бұрын
LOL 😂 it gets better in later videos I promise!!!
@theGameThrough
@theGameThrough Жыл бұрын
It would be suggested to put some console log and also the UI just to make it more clear would be a lot helpful too thanks
@beepboop-devon
@beepboop-devon 7 күн бұрын
Each time he teaches me another hook, I get more attracted to this man.
@admasterefe4340
@admasterefe4340 8 ай бұрын
GOD level explanation. I want everyone to subscribe to this channel. Too bad one can't give two likes.
@mai.krishnahoon
@mai.krishnahoon 10 ай бұрын
Thanks from india..
@moppnitz
@moppnitz 6 ай бұрын
man.. this is a lot to wrap my head around
@DevMeloy
@DevMeloy 4 ай бұрын
With a few exceptions, I'd stay away from context. It sounds like an easier way to share state but come with some significant performance penalties on larger apps.
Learn React Hooks: useRef - Simply Explained!
12:42
Cosden Solutions
Рет қаралды 118 М.
Learn React Hooks: useEffect - Simply Explained!
14:07
Cosden Solutions
Рет қаралды 177 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
Context API in react | get the concept
29:00
Hitesh Choudhary
Рет қаралды 71 М.
Learn React Hooks: useMemo - Simply Explained!
13:41
Cosden Solutions
Рет қаралды 119 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 903 М.
Design patterns in React
14:37
Cosden Solutions
Рет қаралды 180 М.
Learn React Hooks: useReducer - Simply Explained!
13:48
Cosden Solutions
Рет қаралды 71 М.
Custom Hooks in React (Design Patterns)
12:56
Cosden Solutions
Рет қаралды 56 М.
React Context API with TypeScript | UserContext React TypeScript
14:47
WebDevWithArtisan
Рет қаралды 15 М.
React useContext() hook introduction 🧗‍♂️
11:37
Bro Code
Рет қаралды 41 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН