Let's see how to combine useReducer and useContext to create a powerful pattern that allows us to encapsulate complicated nested state, and provide simple state values and action functions to any children of our Context Provider.
Code available at: https://github.com/leighhalliday/demo...
Artwork by James Gilleard - https://www.artstation.com/jamesgilleard