the Context API
by Gian Marco Toso - @gianmarcotoso
self employed / polarityb.it
starting at 11:30
Context provides a way to pass data through the component tree without having to pass props down manually at every level.
- Official React Docs
returns both a Provider and a Consumer
Wrapping a component tree with a Provider makes it so that every time its value changes, all the contained Consumers automatically re-render.