Created
May 28, 2018 11:44
-
-
Save nucab/498fbe158124f15387558ab32776b174 to your computer and use it in GitHub Desktop.
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 { checked, name, type, value } = e.target; | |
this.setState({ | |
[name]: type === 'checkbox' ? checked : value, | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment