This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Call useRef(initialValue) to create a ref object; the initial value is assigned to .current only once, on mount.
You've completed the free preview. Subscribe to unlock every lesson in every course.