Last active
November 24, 2016 04:34
-
-
Save TomoyaShibata/f37209c796746c07fc20d6d67730db01 to your computer and use it in GitHub Desktop.
React with ES2015 以降なら form 部品での onChange ってこれでいいんじゃねえかなあ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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