React useContext
The useContext hook for global state.
React useContext Hook
React Context is a way to manage state globally.
It can be used together with the useState Hook to share state between deeply nested components more easily than with useState alone.
The useContext Hook provides a way to consume context values.