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
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,7 +228,11 @@ this.setState(
228
228
Use this method inside the render function, like in the [example](#form-example). It will return the object with fields keys and their error messages. If the field is valid there will be an empty error string.
229
229
230
230
### isFormValid({state})
231
-
Use this method to check, if the field is valid. It will return true, if all the fields in the form are valid. See the [example](#form-example)
231
+
Use this method to check, if the form is valid. It will return true, if all the fields in the form are valid. See the [example](#form-example)
232
+
233
+
### isFieldValid({state}, fieldName)
234
+
Use this method to check, if particular field is valid. Returns true if it is valid, false otherwise
235
+
232
236
233
237
## Compatibility
234
238
This package id fully compatible with the React v.16, because it uses state updater functions inside.
0 commit comments