React Context #12 React Course

Veröffentlicht am: 27 Mai 2022
auf dem Kanal: Code with Sloba
1,340
58

In your React application, you will have components that are 3, 4 levels deep, or even more.
So what if you want to pass data using props, from the root component to the last component, you would need to pass it through every single component even though they don’t need that data necessarily. And that is called props drilling.

We can solve this problem using react context. So we can pass data like theme data, user information, and similar.

We can use this feature in both class and functional components.

🧿 I discussed:

✔️ What is React context
✔️ What problem React context solves
✔️ How to use useContext hook
✔️ React context vs redux

0:00 Intro
0:40 Creating context
2:28 useContext hook
2:50 React context vs Redux

************************************************************
Previous Video:    • Composition and Inheritance in React ...  
Next video:    • React Fragments (Explained) #13 React...  
Full series    • Full React Course  

************************************************************

👉 Linkedin:
✔️   / slobodan-gajic  

👉 Discord:
✔️   / discord  

👉 Portfolio:
✔️https://bobangajicsm.github.io/portfo...

👉 Instagram:
✔️  / codewithsloba  


Auf dieser Seite können Sie das Online-Video React Context #12 React Course mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Code with Sloba 27 Mai 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,340 Mal angesehen und es wurde von 58 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!