Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import React from 'react';
import { reduxForm } from 'redux-form';
import FormComponent from './form.component';
export const FormContainer = ({ handleSubmit }) => {
const submitForm = (formValues) => {
console.log('submitting Form: ', formValues);
}
return (
<FormComponent
onSubmit={submitForm}
handleSubmit={handleSubmit}
/>
);
}
const formConfiguration = {
form: 'my-very-own-form'
}
export default reduxForm(formConfiguration)(FormContainer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment