📅  最后修改于: 2022-03-11 15:03:13.157000             🧑  作者: Mango
handleSubmit = async (values, { setErrors, resetForm }) => {
try {
// attempt API call
} catch(e) {
setErrors(transformMyApiErrors(e))
// or setStatus(transformMyApiErrors(e))
}
}