File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ import { useField, useForm } from 'react-controlled-form'
32
32
33
33
function Input ({ isValid, errorMessage, ... props }) {
34
34
return (
35
- <>
35
+ < div >
36
36
< input style= {{ borderColor: isValid ? ' black' : ' red' }} {... props} / >
37
37
{errorMessage && < div> {errorMessage}< / div> }
38
- < / >
38
+ < / div >
39
39
)
40
40
}
41
41
@@ -188,6 +188,8 @@ const params = {
188
188
}
189
189
```
190
190
191
+ #### Usage
192
+
191
193
``` js
192
194
import { createUseField } from ' react-controlled-form'
193
195
@@ -232,5 +234,4 @@ const Firstname = () => <input {...firstname.props} />
232
234
## License
233
235
234
236
react-controlled-form is licensed under the [ MIT License] ( http://opensource.org/licenses/MIT ) .<br >
235
- Documentation is licensed under [ Creative Common License] ( http://creativecommons.org/licenses/by/4.0/ ) .<br >
236
237
Created with ♥ by [ @robinweser ] ( http://weser.io ) and all the great contributors.
You can’t perform that action at this time.
0 commit comments