Skip to content

Instantly share code, notes, and snippets.

@jokamjohn
Created May 17, 2018 07:45
Show Gist options
  • Save jokamjohn/f818c92da6ff6efda676757e7ae28f52 to your computer and use it in GitHub Desktop.
Save jokamjohn/f818c92da6ff6efda676757e7ae28f52 to your computer and use it in GitHub Desktop.
<form className="form-inline">
<input
type="text"
className="form-control mb-2 mr-sm-2 mb-sm-0"
placeholder="Name"
ref={input => this.name = input}/>
<div className="input-group mb-2 mr-sm-2 mb-sm-0">
<input
type="text"
className="form-control"
placeholder="Age"
ref={input => this.age = input}/>
</div>
<button
type="submit"
className="btn btn-primary">Save
</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment