Reactjs – Is there a practical difference between useReducer and useState with a callback?
Let's say we had a basic reducer function like this: function reducer(state, action) { if(action.type === 'add') return state + action.value; if(action.type === 'multiply') return state * action.value; return state; } Is there a practical difference between using our reducer…