Skip to content

Instantly share code, notes, and snippets.

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" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment