How to set focus on an input field after rendering?

Posted by Jennifer | Updated on

Want to set focus on an input field after rendering? You should do it in componentDidMount and refs callback instead. Something like this:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers