A global state management boilerplate template for React using hooks.
- npm i
- npm start
- Define your states globally at GlobalState.jsx using useState, useReducer, useMemo etc hooks.
- Don't forget to export them.
- Copy-paste both the state and setter in Context.js
- Use useStore from GlobalStore.js and take only the required fields in your react component.