Use with the following
- react-router
- redux-form
You must use this compontent on the route component where the form is shown not on the form component itself.
This is because this.props.route
is only added to route components, and I didn't want to pass that down through props.
Inspired by this Codepad
Feedback appreciated
- Accept an array of form names
Hello, just sharing my HOC inspired by this one 😉
A few changes:
I have also created a new HOC to use directly instead of the default
reduxForm
HOC