Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save scottshuffler/4f6f299ac218a3aac1af3619bde81bef to your computer and use it in GitHub Desktop.
Save scottshuffler/4f6f299ac218a3aac1af3619bde81bef to your computer and use it in GitHub Desktop.
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