Understanding useReducer hook
Note: useReducer is a hook that is used for state management It's an alternative to useState useState is built using useReducer With useReducer function, we have two parameters useReducer(reducer, initialState) The reducer function accepts two ...

