Demo using the React Context API to manage global state.
This pattern could be used as an alternative to Redux.
Inspired by https://endertech.com/blog/using-reacts-context-api-for-global-state-management
... but uses useState()
instead of reducers, to simplify state management.