Answers for "How to set focus on an input field after rendering?"

2

How to set focus on an input field after rendering?

componentDidMount(){
   this.nameInput.focus(); 
}
Posted by: Guest on July-06-2020

Code answers related to "How to set focus on an input field after rendering?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language