Last active
August 11, 2017 13:19
-
-
Save mrwithersea/7839b9d543ad9d6802db62a4cbc79d25 to your computer and use it in GitHub Desktop.
React stateless componentDidMount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input ref={ function(component){ component && React.findDOMNode(component).focus();} } /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment