← React Intermediate Questions - Set 8 Q78

What is the `useReducer` hook in React?

React Intermediate Questions - Set 8

Example

const [state, dispatch] = useReducer(reducer, init);
dispatch({ type: 'increment' });

What to notice

← Back to the question list