Skip to content

Instantly share code, notes, and snippets.

@geetotes
Last active May 15, 2017 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geetotes/96ee582700b12722fa32c9ba8aec1dbf to your computer and use it in GitHub Desktop.
Save geetotes/96ee582700b12722fa32c9ba8aec1dbf to your computer and use it in GitHub Desktop.
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