Last active
August 2, 2018 15:33
-
-
Save karltaylor/b0b5dac892321299fd715d15a318bef3 to your computer and use it in GitHub Desktop.
Handle Input Change React
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 = e => { | |
const {name, value} = e.currentTarget | |
this.setState({ | |
[name]: value | |
}) | |
} | |
// Make sure you've set a 'name' attribute on the input. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment