Skip to content

Commit df87e0b

Browse files
committed
update readme
1 parent d8f1162 commit df87e0b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import { useField, useForm } from 'react-controlled-form'
3232

3333
function 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
192194
import { createUseField } from 'react-controlled-form'
193195

@@ -232,5 +234,4 @@ const Firstname = () => <input {...firstname.props} />
232234
## License
233235

234236
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>
236237
Created with ♥ by [@robinweser](http://weser.io) and all the great contributors.

0 commit comments

Comments
 (0)