Skip to content

Instantly share code, notes, and snippets.

@davidgilbertson
Last active August 18, 2017 10:13
Show Gist options
  • Save davidgilbertson/4602e62582f2dc4a05f177af7bb0e35a to your computer and use it in GitHub Desktop.
Save davidgilbertson/4602e62582f2dc4a05f177af7bb0e35a to your computer and use it in GitHub Desktop.
class SignInModal extends Component {
componentDidMount() {
this.InputComponent.focus();
}
render() {
return (
<div>
<label>User name: </label>
<Input
ref={comp => { this.InputComponent = comp; }}
/>
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment