Course contentsShow
React
Lesson 496 of 2,39614. Uncontrolled ComponentsPro lesson

Imperatively Focusing an Input

Call inputRef.current.focus() to programmatically move focus to an input, useful for UX enhancements.

This lesson is for subscribers

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