Example of how to set up a shared state between function components in React using Hooks and the Context API
Explained in my article on setting up shared state with react hooks and the context API
Demonstrates one method of sharing state between function components using React's Hooks and Context API.
This project was bootstrapped with Create React App.
In the project directory, you can run:
npm start
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.