The reducer function in useReducer is called only when the dispatch function is used to update the state.
Question 8 of 20 in useReducer