This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Use useEffect + ref.current.focus() to automatically focus an input when a component appears.
You've completed the free preview. Subscribe to unlock every lesson in every course.