How to set focus on an input field after rendering? componentDidMount(){ this.nameInput.focus(); } www.codegrepper.comwww.stackoverflow.com