understanding the useReducer Hook
The useReducer hook was one React hook that every time I had to use it, I wasn't sure of exactly what was going on and if I needed it.
const [state, dispatch] = useReducer(reducer, initialState);
// you can also pass an optional init function as the ...
·11 min read·chibuokemjerry.hashnode.devRead the article
Iheanyi Ihekweaba
Nice article Jerry. Thanks alot!