Migrating from useState to useReducer in React Hooks
Too Long; Didn't Read
`useState' and `useReducer` are both React hooks that allow you to manage state in your components. `useState` is a simpler hook that allows you to managing a single piece of state, while `useReducer` is more powerful. Here is a basic example of how to convert a component that uses `useState` to manage a single piece of state.