Created
December 1, 2016 07:23
-
-
Save sAbakumoff/ea27fc10eb72c2aceea918af3e07a228 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
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