Israel Tiomno
Aug 23, 2017 · 1 min read

Good example, but please bear in mind that using context in React is not recommended. In the first reference link, you give here React team clearly says “If you want your application to be stable, don’t use context. It is an experimental API and it is likely to break in future releases of React.”.

Check this also: https://medium.com/@mweststrate/how-to-safely-use-react-context-b7e343eff076 and https://medium.com/react-ecosystem/how-to-handle-react-context-a7592dfdcbc and https://stackoverflow.com/questions/36428355/react-with-redux-what-about-the-context-issue of course. ;)

)

    Israel Tiomno

    Written by