You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,25 @@
1
1
# React Input Form Validation
2
2
3
-
A customized validatorjs library to validate the react forms. This library is extended version of [validatorjs](https://www.npmjs.com/package/validatorjs).
*[Demo](https://codesandbox.io/s/react-form-input-validation-demp-hyuju?fontsize=14&hidenavigation=1&theme=dark) (in CodeSandbox)
7
11
8
12
## Why use react-form-input-validation?
9
13
10
-
* JQuery Free
11
-
* Auto Controlled State
14
+
* JQuery Free.
15
+
* Auto Controlled State.
12
16
* Compatible with libraries like [Material UI](https://material-ui.com/), and etc.
13
17
* Readable and declarative validation rules which is inspired by laravel framework.
14
18
* Error messages with multilingual support.
15
19
16
20
## Usage
17
21
18
-
A example form has given below. View all available apis in [documentation](https://gokulakannant.github.io/react-form-input-validation/classes/reactformvalidator.html)
22
+
A example form has given below. View all available apis in [documentation](https://gokulakannant.github.io/react-form-input-validation/classes/reactformvalidator.html).
19
23
20
24
```js
21
25
importReactfrom"react";
@@ -106,7 +110,7 @@ class ValidationForm extends React.Component {
106
110
107
111
## Custom attribute name
108
112
109
-
Refer the below example to override the attribute name
113
+
Refer the below example to override the attribute name,
110
114
111
115
```html
112
116
<input
@@ -119,8 +123,8 @@ Refer the below example to override the attribute name
119
123
/>
120
124
```
121
125
122
-
The output will be like, "The USER NAME field is required."
126
+
The output will be like, "The USER NAME field is required.".
123
127
124
128
## License
125
129
126
-
This project is licensed under the GPLv3 License - see the [LICENSE.md](LICENSE.md) file for details
130
+
This project is licensed under the GPLv3 License - see the [LICENSE.md](LICENSE.md) file for details.
0 commit comments