TLDR; This is an experimental repo that shows how to properly manage your global states with React Context!
Clone repo:
SSH:
git clone [email protected]:ooade/global-context-example.git
cd global-context-exampleor
HTTPS:
git clone https://github.com/ooade/global-context-example.git
cd global-context-exampleStart a live-reload development server:
yarn startIf you find yourself wanting to do this, you should just use Redux or go with Recoiljs.
If you have any question, feel free to reach out to me!