Skip to content

Instantly share code, notes, and snippets.

@samsch
Forked from anonymous/react.js
Created December 7, 2017 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsch/9ddeeadc9090d98a747ae96b214c400c to your computer and use it in GitHub Desktop.
Save samsch/9ddeeadc9090d98a747ae96b214c400c to your computer and use it in GitHub Desktop.
handleProductChange(event) {
const target = event.target;
const name = target.name;
this.setState({
"product": {
[name]: target.value
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment