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'
3232
3333function Input ({ isValid, errorMessage, ... props }) {
3434 return (
35- <>
35+ < div >
3636 < input style= {{ borderColor: isValid ? ' black' : ' red' }} {... props} / >
3737 {errorMessage && < div> {errorMessage}< / div> }
38- < / >
38+ < / div >
3939 )
4040}
4141
@@ -188,6 +188,8 @@ const params = {
188188}
189189```
190190
191+ #### Usage
192+
191193``` js
192194import { createUseField } from ' react-controlled-form'
193195
@@ -232,5 +234,4 @@ const Firstname = () => <input {...firstname.props} />
232234## License
233235
234236react-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 >
236237Created with ♥ by [ @robinweser ] ( http://weser.io ) and all the great contributors.
You can’t perform that action at this time.
0 commit comments