Using useReducer but forgetting to return a new state in the reducer function
Forgetting to Return New State in useReducer A common mistake when using useReducer is mutating the existing state or forgetting to return a new state object from the reducer function,….