>_
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 effects and synchronization terms: useEffect, Effect cleanup, Dependency array, Stale closure. | SWE Maxx
← Question bank
React · Matching
Difficulty: Hard
Match the descriptions to these effects and synchronization terms: useEffect, Effect cleanup, Dependency array, Stale closure.
Effects and synchronization
Concept relationships
Choose a match for every item. Use each answer once.
A callback can retain old bindings if its lifecycle does not track the reactive values it uses.
Choose a match
Dependency array
Effect cleanup
useEffect
Stale closure
Effects connect React to external systems such as subscriptions rather than replacing ordinary render-time calculations.
Choose a match
Dependency array
Effect cleanup
useEffect
Stale closure
Cleanup runs before that Effect is set up again with changed dependencies and when it is removed.
Choose a match
Dependency array
Effect cleanup
useEffect
Stale closure
The dependency list tells React which changes require a new setup and cleanup cycle.
Choose a match
Dependency array
Effect cleanup
useEffect
Stale closure
Check answer
More in React →