📅  最后修改于: 2022-03-11 15:02:03.785000             🧑  作者: Mango
const Input = ({ field, form }) => {
useEffect(() => {
form.validateForm();
}, []);
return (
{form.errors[field.name] && (
{form.errors[field.name]}
)}
);
};