Back to Developer Roadmap

useReducer

src/data/roadmaps/react/content/[email protected]

4.0678 B
Original Source

useReducer

useReducer: An alternative to useState. Accepts a reducer of type (state, action) => newState, and returns the current state paired with a dispatch method. (If you’re familiar with Redux, you already know how this works.)

Visit the following resources to learn more: