Read Class 24 - martinbalke-401-adavanced-js/seattle-javascript-401n14 GitHub Wiki

React Context API

React context API is a powerful tool that allows for the sharing of state in a much more intuitive and modular way. It solves the problem of a parent container sharing it's state with a grandchild. Normally in react you would need to pass state via props from parent to child and then from child to grandchild. Now all you need to do is create a react context.provider specify the state as the value to be provided and then pass it to the grandchild by making it a context.consumer.