react-form-validation-checker
v1.0.11
Published
Library to validate the payload in react
Downloads
3
Maintainers
Readme
react-form-validation-checker
// import { validations } from "react-form-validation-checker"
async function formValidate() {
if(await validations(payload) == true) {
// call api here..
}
else{
// throw error message like 'the name field is empty' dynimically
// toast.success(await validations(payload), {position:"top-center"})
}
}