This repo demonstrates how we can use useReducer() Hook in React App instead of useState() so as to separate rendering process from state management thus making it easier to maintain and test App.
clone repo
cd hello-react-reducer
npm i
npm run dev
Open browser and type http://localhost:3000