How to use the new #react context #api
▻https://hackernoon.com/how-to-use-the-new-react-context-api-fce011e7d87?source=rss----3a8144eab
Have you ever passed a property to a React component for no other reason but just to be able to pass it down to a child of that component? Well, this is exactly what the new React Context API tries to fix.Prefer Video?Prefer video tutorials? I made this tutorial also into a video, which can be found below:▻https://medium.com/media/092f0232e9d7a5756f98679c4df65a3c/hrefInterested in learning more about React and #javascript? Sign up for my email list so I can share with you the next screencasts and tutorials!The problem?For example in the example below:- we have some data, namely a number with the value of 10- we need the data in the Red component and also in the Green one- the Green component is a child of the Blue component that is a child of the Red component- so, most probably, we will (...)