Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@TomoyaShibata
Last active November 24, 2016 04:34
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 TomoyaShibata/f37209c796746c07fc20d6d67730db01 to your computer and use it in GitHub Desktop.
Save TomoyaShibata/f37209c796746c07fc20d6d67730db01 to your computer and use it in GitHub Desktop.
React with ES2015 以降なら form 部品での onChange ってこれでいいんじゃねえかなあ
handleChangeFormValue(event) {
this.setState({
[event.target.name]: event.target.value
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment