ezzabuzaid / react-context-in-angular

1 stars 0 forks source link

What Is React Context API #5

Open ezzabuzaid opened 3 years ago

ezzabuzaid commented 3 years ago

From React Documentation

Context provides a way to pass data through the component tree without having to pass props down manually at every level.

props in Angular terms corresponds to Inputs

In other words, context can help you to pass down inputs/props through a components tree without the need to define them at every level/component.

Words 📝 might not be that efficient, a practical example might be.