Putting Things in Context With React

Context is currently an experimental API for React – but soon to be a first class citizen! There are a lot of reasons it is interesting but perhaps the most is that it allows for parent components to pass data implicitly to their children, no matter how deep the component tree is. In other words, data can be added to a parent component and then any child can tap into it.

See the Pen React Context Lights by Neal …
The post Putting Things in Context With React appeared first on CSS-Tricks.

Link: https://css-tricks.com/putting-things-in-context-with-react/