>_
SWE Maxx
Questions
Quizzes
Daily challenge
System design
My attempts
Sign in
☀
☾
Light mode
Dark mode
Loading question…
Sign in
Match the descriptions to these state updates terms: useState, Functional updater, Lazy initializer, State snapshot. | SWE Maxx
← Question bank
React · Matching
Difficulty: Medium
Match the descriptions to these state updates terms: useState, Functional updater, Lazy initializer, State snapshot.
State updates
Concept relationships
Choose a match for every item. Use each answer once.
UseState preserves component-local state across renders and provides a way to request a new value.
Choose a match
Functional updater
Lazy initializer
State snapshot
useState
Passing an initializer function avoids evaluating an expensive initial calculation on every ordinary render.
Choose a match
Functional updater
Lazy initializer
State snapshot
useState
Each render has its own state snapshot, and setting state schedules another render rather than changing that snapshot.
Choose a match
Functional updater
Lazy initializer
State snapshot
useState
A functional updater avoids depending on a possibly stale state snapshot during a sequence of updates.
Choose a match
Functional updater
Lazy initializer
State snapshot
useState
Check answer
More in React →