React 19 · State and effects

Manage complex state with a reducer

Move state transitions into one function.

const [state, dispatch] = useReducer(reducer, { count: 0 });
dispatch({ type: "increment" });

Official React 19 documentation

More state and effects commands

All state and effects commands · React 19 cheatsheet

Was this page helpful?