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

Why is state called a snapshot?

Short interview answer

The value belongs to one render. Calling a setter schedules another render but cannot alter variables or handlers that already captured the current snapshot.

Key takeaway

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

← Back to React hooks

Related questions