Last active
August 18, 2017 10:14
-
-
Save davidgilbertson/b118a247865070a419c9736aeb3e0358 to your computer and use it in GitHub Desktop.
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
class Input extends Component { | |
focus() { | |
this.el.focus(); | |
} | |
render() { | |
return ( | |
<input | |
ref={el=> { this.el = el; }} | |
/> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment