Skip to content

Instantly share code, notes, and snippets.

@bad6e
Created February 13, 2018 15:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bad6e/03a0d563c072f1fa76c860cab8630379 to your computer and use it in GitHub Desktop.
Save bad6e/03a0d563c072f1fa76c860cab8630379 to your computer and use it in GitHub Desktop.
Dynamic onChange
handleChange = (event) => {
const { target: { name, value } } = event
this.setState({ [name]: value })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment