Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 2854a61

Browse files
committed
update README
1 parent 14f273c commit 2854a61

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Are you looking for a simple way to create validated forms with React?
66

77
Congratulations! Your search is over, because **`@cat-react/form`** offers you a simple way to create either frontend- or backend-validated forms.
88

9-
```js
9+
```jsx
1010
<Form>
1111
<MyInput name="email"
1212
validations={{
@@ -17,6 +17,10 @@ Congratulations! Your search is over, because **`@cat-react/form`** offers you a
1717
validations={{
1818
isRequired: true,
1919
equalsField: 'email'
20+
}}
21+
validationErrors={{
22+
isRequired: 'Please confirm your email address.',
23+
equalsField: 'The email addresses do not match each other.'
2024
}}/>
2125
</Form>
2226
```

0 commit comments

Comments
 (0)