Skip to content

Commit 5ec0aed

Browse files
author
Zach Silveira
authored
Failing at readme updates...
1 parent 000864a commit 5ec0aed

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ export default ({ error, ...props }) => {
5757

5858
You can see a list of rules [here](https://github.com/skaterdav85/validatorjs#available-rules)
5959

60-
`Form` accepts a few more props for those that need to customize things.
61-
6260
**errorMessages**
6361

6462
Custom error messages. You can see how these work [here](https://github.com/skaterdav85/validatorjs#custom-error-messages)
65-
```
63+
```js
6664
errorMessages={{
6765
'required.email': 'Custom error message',
6866
'min.password': 'Custom min password required error message.'
@@ -72,14 +70,14 @@ errorMessages={{
7270
**initialValues**
7371

7472
Set values when the form is first rendered.
75-
```
73+
```js
7674
initialValues={{name: 'set'}}
7775
```
7876

7977
**errors**
8078

8179
Set errors manually, in case the server comes back with messages.
8280

83-
```
84-
initialValues={{name: 'set'}}
81+
```js
82+
errors={{name: 'Email is invalid...'}}
8583
```

0 commit comments

Comments
 (0)