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 ...
chibuokemjerry.hashnode.dev11 min read
Iheanyi Ihekweaba
Software Developer
Nice article Jerry. Thanks alot!