React's context API has always been labelled as experimental, but from the advent of Redux it has been used in all the most exciting react libraries. It's now a stabilised feature so now is the perfect time to learn the new context API and how render props can simplify your code.
48. SUMMARY
▸ Functions being first class values means we can use them as
parameters to enable more flexible code re-use
▸ Using functions as parameters allows highly customisable
shared components, complete with state and lifecycle hooks.
▸ React Context lets you share state across the tree of your
application
▸ Context still uses the React tree. This means it works with
server side rendering and you can safely use it in parts of your
app, as well as using it as a whole app solution.
@ForbesLindesay