how to set focus to the first field by default in react code example
Example: How to set focus on an input field after rendering?
componentDidMount(){
this.nameInput.focus();
}
componentDidMount(){
this.nameInput.focus();
}