Skip to content

Instantly share code, notes, and snippets.

@samanpwbb samanpwbb/blah.js
Created May 26, 2015

Embed
What would you like to do?
// where prop is a form field ID like 'password' or 'username'
setValue(prop, e) {
this.setState({
[prop]: e.target.value
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.