Course contentsShow
React
Lesson 733 of 2,39619. useRefPro lesson

Auto-focusing Inputs on Mount

Use useEffect + ref.current.focus() to automatically focus an input when a component appears.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.