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

How does splitting a large state object help performance?

Short interview answer

If one big state object holds many unrelated fields, any single field's update re-renders every consumer of that object. Splitting it into independent pieces of state lets a component subscribe to only the slice it actually needs to react to.

Key takeaway

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

← Back to React performance optimization

Related questions