Skip to content
This repository was archived by the owner on Nov 26, 2021. It is now read-only.

Commit a1d9001

Browse files
committed
fix doc
1 parent bbe8e6b commit a1d9001

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,18 @@ Of course, you can also use unencapsulated form components, just specify `value`
108108

109109
```js
110110
const {
111-
fields,
112-
onChange,
111+
formControl: {
112+
fields,
113+
onFormChange,
114+
},
113115
} = this.props;
114116

115117
return (
116118
<input
117119
className={fields.email.className}
118120
name="email"
119121
type="text"
120-
onChange={onChange}
122+
onChange={onFormChange}
121123
value={fields.email.value}
122124
placeholder="Please input your email"
123125
/>

0 commit comments

Comments
 (0)