Skip to content
A Higher Order Component using react-redux to keep form state in a Redux store
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github chore: add Spectrum comunity link for help Jan 2, 2020
docs fix(docs): fix `select-multiple` type for `Field` Jan 5, 2020
flow-typed/npm chore: update lodash flow definitions Jan 3, 2020
scripts chore: moved `build-examples.sh` script to redux-form-examples Dec 31, 2019
src fix(field): use onChange return as preventDefault only in RN (#4596) Jan 13, 2020
.babelrc.js chore: upgrade jest Jan 3, 2020
.codeclimate.yml fix codeclimate May 30, 2019
.editorconfig chore: fix editor config line length Nov 29, 2019
.eslintignore script build windows compatibility Aug 28, 2015
.eslintrc conditional isList implementation and new eslint checking May 30, 2019
.flowconfig chore: `npm upgrade --save-dev` Jan 3, 2020
.gitignore added .vscode to gitignore Oct 9, 2017
.npmignore chore: `npm upgrade --save-dev` Jan 3, 2020
.nvmrc Add .nvmrc (#3907) Mar 23, 2018
.prettierrc v7.2.1 Jan 18, 2018
.travis.yml chore: upgrade codecov Jan 3, 2020
CHANGELOG.md chore: replace github user erikras to new org name redux-form Jan 2, 2020
CODE_OF_CONDUCT.md chore: add Contributor Covenant Code of Conduct Oct 1, 2019
CONTRIBUTING.md chore: add Spectrum comunity link for help Jan 2, 2020
LICENSE first commit Jul 31, 2015
README.md chore: fix badge links Jan 3, 2020
babel-lodash-es.js Formatted all code with Prettier (#2905) May 9, 2017
immutable.js Working on fixing v8 issues Dec 12, 2018
logo.png testing and debugging multirecord example, updated readme Oct 26, 2015
package-lock.json chore: upgrade dependencies Feb 4, 2020
package.json chore: upgrade husky precommit config Feb 4, 2020
tools.md Add redux-form-validators to tools list (#3923) Mar 18, 2018
webpack.config.js conditional isList implementation and new eslint checking May 30, 2019

README.md

redux-form


💰Psst!! Do you know React and Redux? Sign up with Triplebyte to get offers from top tech companies! 💰


NPM Version NPM Downloads Build Status codecov.io Code Climate styled with prettier PayPal donate button Twitter URL Patreon Backers on Open Collective Sponsors on Open Collective

redux-form works with React Redux to enable an html form in React to use Redux to store all of its state. Beerpay

⚠️ ATTENTION ⚠️

If you're just getting started with your application and are looking for a form solution, the general consensus of the community is that you should not put your form state in Redux. The author of Redux Form took all of the lessons he learned about form use cases from maintaining Redux Form and built 🏁 React Final Form, which he recommends you use if you are just starting your project. It's also pretty easy to migrate to from Redux Form, because the <Field> component APIs are so similar. Here is a blog post where he explains his reasoning, or there are two talks if you prefer video. Formik is also a nice solution.

The only good reason, in the author's view, to use Redux Form in your application is if you need really tight coupling of your form data with Redux, specifically if you need to subscribe to it and modify it from parts of your application far from your form component, e.g. on another route. If you don't have that requirement, use 🏁 React Final Form.

Installation

npm install --save redux-form

Documentation

🏖 Code Sandboxes 🏖

You can play around with redux-form in these sandbox versions of the Examples.

Videos

A Practical Guide to Redux Form – React Alicante 2017
A Practical Guide to Redux Form – React Alicante 2017
Abstracting Form State with Redux Form – JS Channel 2016
Abstracting Form State with Redux Form – JS Channel 2016

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

You can’t perform that action at this time.