docs/api/Form.md
FormThe Form component is a simple wrapper for the React <form> component that
allows the surrounding redux-form-decorated component to trigger its
onSubmit function.
It is only useful if you are:
onSubmit={this.props.handleSubmit(this.mySubmitFunction)} to your <form>
componentsubmit() Instance API
(i.e. calling it directly on a reference to your decorated form component)submit(form) actionIf you are passing in your onSubmit function as a config parameter or prop,
this component will do nothing for you.
var Form = require('redux-form').Form // ES5
import { Form } from 'redux-form' // ES6
FormAny that you can pass to <form>, but only one is required.
onSubmit : Function [required]The function to call when form submission is triggered.
All you do is replace your <form> with <Form>.