Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class FormLogin extends Component {
data() {
return {
username: findDOMNode(this.refs.username).value,
password: findDOMNode(this.refs.password).value,
};
}
render() {
return (
<form onSubmit={submit}>
<FormControl ref="username" type="text" />
<FormControl ref="password" type="password" />
</form>
);
}
}
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.