useReducer in React
useReducer is basically an alternative to useState hook.
useReducer is used to manage the states of the application. The state reducer pattern enables us to properly manage our state’s updates based on criteria that the user provides
useReducer accep...
savvyshivam.hashnode.dev2 min read