Created
February 13, 2018 15:04
-
-
Save bad6e/03a0d563c072f1fa76c860cab8630379 to your computer and use it in GitHub Desktop.
Dynamic 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
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