This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
ref.current is always synchronously up-to-date, unlike state which batches updates—use this for immediate mutable storage.
You've completed the free preview. Subscribe to unlock every lesson in every course.