Skip to content

Instantly share code, notes, and snippets.

@romreed
Created June 16, 2017 13:30
Show Gist options
  • Save romreed/ca64f7b06fdaeede3ac808fa1b580044 to your computer and use it in GitHub Desktop.
Save romreed/ca64f7b06fdaeede3ac808fa1b580044 to your computer and use it in GitHub Desktop.
react focus
if (this.focusInput) {
setTimeout(() => {
this.focusInput.focus()
}, 100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment