Skip to content

Commit 6cc6866

Browse files
authored
Update README.md
1 parent 768819a commit 6cc6866

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
A submit button for `redux-form` that dynamically changes based on the current redux-form state.
44
Could be used without `redux-form`, but is intended for use with `redux-form`'s props.
55

6+
## Demo
7+
8+
https://deedmob.github.io/redux-form-react-submitbutton/example/
9+
610
## Installing
711

812
`yarn add redux-form-react-submitbutton`
@@ -18,15 +22,17 @@ Could be used without `redux-form`, but is intended for use with `redux-form`'s
1822
class AccountForm extends React.Component {
1923
render(){
2024
<form>
21-
<Field name="email" component={TextInput}/>
22-
<SubmitButton type="Update" />
25+
<Field name="email" component={TextInput} />
26+
<SubmitButton />
2327
</form>
2428
}
2529
}
2630
```
2731

2832
## Props
2933

34+
There are no required props
35+
3036
```js
3137

3238
static defaultProps = {

0 commit comments

Comments
 (0)