Skip to content

Instantly share code, notes, and snippets.

@bad6e
Created January 26, 2018 14:41
Show Gist options
  • Save bad6e/22a43b719f7475e2762f1b4198939c16 to your computer and use it in GitHub Desktop.
Save bad6e/22a43b719f7475e2762f1b4198939c16 to your computer and use it in GitHub Desktop.
onChange = (event) => {
const { target: { name, value } } = event
this.setState({ [name]: value, event: event })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment