useFormValidate
Registers a callback that will be used to validate the form when
validate is
called, typically when a form field is touched or when the form is submitted.
Live examples:
Code examples
const errors = await api.validate(state.values);
if (errors) {
form.setErrors(errors);
}
});