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

What is lazy reducer initialization?

Short interview answer

The third useReducer argument calculates initial state from the initial argument once, avoiding repeated expensive initialization during renders.

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