Created
May 1, 2021 09:51
-
-
Save akshay-nm/09f0c554cda4ba82dd97d12a21c875c1 to your computer and use it in GitHub Desktop.
Object returned by use-form-state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// form states and functions | |
isValid, // the overall form validity | |
isValidating, // are any validations still running | |
triggerValidation, // trigger validations | |
reset, // reset the form back to default configuration | |
// field wise states and functions | |
// for email | |
email, | |
onEmailChange, | |
isEmailValid, | |
showEmailWarning, | |
// for password | |
password, | |
onPasswordChange, | |
isPasswordValid, | |
showPasswordWarning, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment