React Hooks | Context and useContext | ReactJS tutorial

preview_player
Показать описание
Learn React Hooks!

In this video, we will look at the "useContext" React Hook so you understand how to use it in your code today. useContext lets us manage state in a new way which let's us replace Redux or other state management libraries in a lot of instances.

This React JS tutorial will show you how you can start using useContext today! 🎉

We will cover how to use the Context createContext and Provider to simplify your state management.

We will show you how to use Context and the "useContext" hook.

🔗 Link to code:

📚The official React docs on useContext

👋Join the Discord

💜 Subscribe for more videos 💜

Follow Niall Maher

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

Thank you for the vid. Would you ever use this to pass input values from one child to an other?
I`m asking as im trying to build a simple crud app, where the update opens a pop up window. This would mean i need to pass the input value from child to parent 2 times. ><
<App>
notes.map
<Note/>
<PopUp
<UpdateArea/>
/>

from update to note, note to app. Maybe my approach is wrong in the first place, being a newbie.

ritualjint
Автор

ya but what happens when you qwant to update the theme value :/ - this video seems incomplete

runningantelope
join shbcf.ru