Last active
May 15, 2017 19:50
-
-
Save geetotes/96ee582700b12722fa32c9ba8aec1dbf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
render() { | |
return( | |
<form> | |
Usernane: <input type='text' name='username' value={this.state.username} onChange={this._change} /> | |
<div className='error'>{this.state.errorMessages.username.join('. ')}</div> | |
Email: <input type='email' name='email' value={this.state.email} onChange={this._change} /> | |
<div className='error'>{this.state.errorMessages.email.join('. ')}</div> | |
<button onClick={this._validate}>Submit</button> | |
</form> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment