← React Intermediate Questions - Set 4 Q34

What is the purpose of `useReducer` in React?

React Intermediate Questions - Set 4

Example

const [state, dispatch] = useReducer(reducer, { items: [], total: 0 });

What to notice

← Back to the question list