Created
November 17, 2018 09:23
-
-
Save mlshv/f68155384ee4d1e4cb6b50ed005fe35f to your computer and use it in GitHub Desktop.
single variable example event
This file contains hidden or 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
// in some react class component | |
handleChangeInput = (e) => { | |
this.setState({ [e.target.name]: e.target.value }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment