This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Use ref.current.scrollIntoView() to programmatically scroll an element into the viewport.
You've completed the free preview. Subscribe to unlock every lesson in every course.