React Hook, Hooks, React.
‘reset’: return initialState; default: return state; } } function Reducer() { const [count, dispatch] = useReducer(reducer, initialState); //useRedcure return pair of value [count,dispatch] //dispatch method allow us to execute the code corresponding to perticular action return ( <div>