Learn React Hooks: useContext - Simply Explained!

preview_player
Показать описание


In this video we will learn about React hooks, starting with useContext. This powerful React hook will allow you to manage your state efficiently without having to pass an enormous amount of props around (prop drilling). You will learn how to identify when to use the React Context API, how to use createContext to create the context, create a custom hook to handle undefined values, and finally use the context in any component to get access to the data.

In this new React world, hooks are here to stay, so it's best to learn them! In this tutorial I demonstrate the useContext React hook, and I explain it very simply and in a way that is easy to understand. Enjoy!
Рекомендации по теме
Комментарии
Автор

Thank you for the content. You have the gift to talk about coding in a simple way.

mikoajkulczynski
Автор

It's amazing you also taught how to deal with problems and showed proper way to code and handle potential errors.

HR-pzts
Автор

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.

GeraldPajulas
Автор

Great tutorial! I was so confused about how Context works, every other creator complicates it too much. Thank you for simplifying it. Just subbed!

shubhankarvalimbe
Автор

Wow you're a perfect teacher and programmer thanks for the time that you spent for this amazing content

osmankain
Автор

Clear explanations with no "fluff!

David-eblh
Автор

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.

camilotorresf
Автор

I have seen a lot of videos on context but this is the best. easy to understand and follow through. thank you.

omobolanleayobami
Автор

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.

marshallfungai
Автор

Wow! Such a excellent explanation and with examples too. Well done 👏👏👏👏

AntNZ
Автор

I hope your videos go viral soon like they should. You are doing a great work with your explanations

jay-kvwn
Автор

Thanks for this great and clear explanation with a lot more edges. Hope you will get 1 million subs soon. Tbh, You deserve it.

garudaphoenix
Автор

Thanks for content it get me out of props drilling and gaining to know the power of the useContext and customHook.

yongdiamond
Автор

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.

prshendra
Автор

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.

soduno
Автор

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 !

prabhanshugupta
Автор

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.

YisneySoto
Автор

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)

mostinho
Автор

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 🙇

seelvek
Автор

Thank you very much for your video. I finally cleaned up my context implementation and were able to get rid of the question marks 🙂

michaelkroll
join shbcf.ru