Skip to content
React·Intermediate·Conceptual·1 min read

When is useReducer preferable to several useState calls?

Short interview answer

Use a reducer when multiple fields change together, a workflow has named transitions, or the next state depends on a structured event. Independent simple values remain clearer as separate state. Reducers improve modeling, not automatically performance.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to State modeling with reducers

Related questions