Skip to content

Commit 2f69176

Browse files
lookfirsterikras
andauthored
Fix typo and change order around so it is more logical. (#14)
Co-authored-by: Erik Rasmussen <[email protected]>
1 parent 484aa89 commit 2f69176

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,38 +89,38 @@ The name of the field to listen to.
8989
9090
A render prop given the boolean flag.
9191
92-
### `OnBlur`
92+
### `OnChange`
9393
94-
Calls its `children` callback whenever the specified field is blurred. It renders nothing.
94+
Calls its `children` callback whenever the specified field changes. It renders nothing.
9595
9696
#### `name : String`
9797
9898
The name of the field to listen to.
9999
100-
#### `children: () => void`
100+
#### `children: (value: any, previous: any) => void`
101101
102-
A function that will be called whenever the specified field is blurred.
102+
A function that will be called whenever the specified field is changed. It is passed the new value and the previous value.
103103
104-
### `OnChange`
104+
### `OnFocus`
105105
106-
Calls its `children` callback whenever the specified field changes. It renders nothing.
106+
Calls its `children` callback whenever the specified field becomes active. It renders nothing.
107107
108108
#### `name : String`
109109
110110
The name of the field to listen to.
111111
112-
#### `children: (value: any, previous: any) => void`
112+
#### `children: () => void`
113113
114114
A function that will be called whenever the specified field is changed. It is passed the new value and the previous value.
115115
116-
### `OnFocus`
116+
### `OnBlur`
117117
118-
Calls its `children` callback whenever the specified field becomes active. It renders nothing.
118+
Calls its `children` callback whenever the specified field is blurred. It renders nothing.
119119
120120
#### `name : String`
121121
122122
The name of the field to listen to.
123123
124124
#### `children: () => void`
125125
126-
A function that will be called whenever the specified field becomes active.
126+
A function that will be called whenever the specified field is blurred.

0 commit comments

Comments
 (0)