← React Beginner Questions - Set 12 Q115

What is the `useReducer` hook in React?

React Beginner Questions - Set 12

Example

const [state, dispatch] = useReducer(reducer, initialState);
dispatch({ type: 'add', item });

What to notice

← Back to the question list