React 2020  / Episode  7  /  

Context API

In this episode series we are going to take a look at Context API which comes built in React, and is nice way to share data with you React components.

First of all I'm going to show you something called Prop Drilling, which all by it self is not a bad thing, it is a pattern that you will come to get to know while working with React. However, as you will see in this video it can bacome pretty unwieldy very fast if you don't plan composition of your components.

So when sending data between components becomes very complex you can alleviate the situation with Context API which you can use to send data to nested components or even as a simple state management tool. It's very cool as you will see.

Wanna ask a question about video?

Like This Video?

Support it by sharing it ;)

© Watch And Learn,2024