Created
August 23, 2017 20:48
-
-
Save scottshuffler/4f6f299ac218a3aac1af3619bde81bef 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
import React from 'react' | |
import { Field, reduxForm } from 'redux-form' | |
let ContactForm = props => { | |
const { handleSubmit } = props; | |
return ( | |
<form onSubmit={ HOW DOES A MAN DO THIS }> | |
<div> | |
<label htmlFor="firstName">First Name</label> | |
<Field name="firstName" component="input" type="text" /> | |
</div> | |
<div> | |
<label htmlFor="lastName">Last Name</label> | |
<Field name="lastName" component="input" type="text" /> | |
</div> | |
<div> | |
<label htmlFor="email">Email</label> | |
<Field name="email" component="input" type="email" /> | |
</div> | |
<button type="submit">Submit</button> | |
</form> | |
) | |
}; | |
ContactForm = reduxForm({ | |
// a unique name for the form | |
form: 'contact' | |
})(ContactForm); | |
export default ContactForm; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment