The dispatch function returned by useReducer lets you update the state to a different value and trigger a re-render.
We need to pass the action as the only argument to the dispatch function.
dispatch functions do not have a return value.