#51 Using React Context vs props | Side effect, Reducer and Context | A Complete React Course

Опубликовано: 12 Июль 2022
на канале: procademy
1,815
43

In this lecture, let's briefly understand when to use react context and when to use props in a react application. We can use react context when we want to pass a state from one component to its child components, forwarding it from one child to another child. On the other hand, we can use props when we want to use a state directly inside the immediate child component.