useFormSubmit
Registers a callback that will be used to submit the form when
submit is called.
Live examples:
Code examples
try {
await api.submit(state.values);
} catch (errors) {
form.setErrors(errors);
}
});
Registers a callback that will be used to submit the form when
submit is called.
Live examples:
try {
await api.submit(state.values);
} catch (errors) {
form.setErrors(errors);
}
});
Join 1,000+ subscribers and receive monthly tips & updates on new Ariakit content.
No spam. Unsubscribe anytime. Read latest issue