You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+34-4Lines changed: 34 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# React Redux Form 🍂
1
+
# React Redux Form ❄️
2
2
3
3
[](https://gitter.im/react-redux-form/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
If you want to get up and running with forms quickly without having to set up Redux, [just use Local Forms](http://davidkpiano.github.io/react-redux-form/docs/guides/local.html):
27
+
28
+
```js
29
+
importReactfrom'react';
30
+
import { LocalForm, Control } from'react-redux-form';
31
+
32
+
exportdefaultclassMyAppextendsReact.Component {
33
+
handleChange(values) { ... }
34
+
handleUpdate(form) { ... }
35
+
handleSubmit(values) { ... }
36
+
render() {
37
+
return (
38
+
<LocalForm
39
+
onUpdate={(form) =>this.handleUpdate(form)}
40
+
onChange={(values) =>this.handleChange(values)}
41
+
onSubmit={(values) =>this.handleSubmit(values)}
42
+
>
43
+
<Control.text model=".username"/>
44
+
<Control.text model=".password"/>
45
+
</LocalForm>
46
+
);
47
+
}
48
+
}
49
+
```
50
+
51
+
That's all you need. Seriously. [Read the Documentation](http://davidkpiano.github.io/react-redux-form/docs/guides/local.html) for more information.
52
+
24
53
## Quick Start
54
+
For more fine-grained control (such as using custom reducers, storing form state globally, dispatching actions, etc.), you'll want to set up a Redux store for your forms.
25
55
26
56
Be sure to read the [step-by-step quick start guide](http://davidkpiano.github.io/react-redux-form/docs/guides/quickstart.html) in the documentation.
27
57
@@ -66,7 +96,7 @@ class MyForm extends React.Component {
0 commit comments