Last active
March 2, 2017 21:56
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
class EditPersonForm extends Component { | |
render() { | |
const { handleSubmit } = this.props | |
return ( | |
<form onSubmit={handleSubmit}> | |
<div> | |
<label htmlFor="first_name">First Name</label> | |
<Field name="first_name" component="input" /> | |
</div> | |
<div> | |
<label htmlFor="last_name">Last Name</label> | |
<Field name="last_name" component="input" /> | |
</div> | |
<div> | |
<label htmlFor="notes">Notes</label> | |
<Field name="notes" component="textarea" /> | |
</div> | |
<FieldArray name="phone_numbers" component={renderPhoneNumbers}/> | |
<button type="submit">Submit</button> | |
</form> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment