How and when to use useReducer
Oct 28, 2022 · 5 min read · 1. useReducer useReducer is a react hook used for state management. useReducer can be used as a substitute for useState. useState uses useReducer internally, demonstrating that it can perform all tasks that useState can. useReducer takes in two argum...
Join discussion