How to implement useState with useReducer
A fun exercise to help understand the differences and use cases of these two related hooks
Sources
- T2How to implement useState with useReducerMartin Fowler / Overreacted / Kent C. Dodds / Josh Comeau
A fun exercise to help understand the differences and use cases of these two related hooks