Glossary: React Beyond the Basics
dispatch
The function returned by useReducer that sends an action to the reducer. React then runs the reducer and re-renders with the new state.
Glossary: React Beyond the Basics
The function returned by useReducer that sends an action to the reducer. React then runs the reducer and re-renders with the new state.