redux-form

A Higher Order Component using react-redux to keep form state in a Redux store

Github星跟踪图

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]










主要指标

概览
名称与所有者redux-form/redux-form
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2015-07-31 16:07:03
推送于2024-06-13 12:17:05
最后一次提交2023-03-28 09:19:31
发布数209
最新版本名称v8.3.10 (发布于 2023-03-28 09:19:32)
第一版名称v0.1.0 (发布于 )
用户参与
星数12.5k
关注者数170
派生数1.6k
提交数2.1k
已启用问题?
问题数3739
打开的问题数474
拉请求数778
打开的拉请求数21
关闭的拉请求数253
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?