🌈 搜索
📅  最后修改于: 2022-03-11 15:02:49.192000             🧑  作者: Mango
import {useForm} from 'react-hook-form'; const {register,handleSubmit,formState: { errors }} = useForm(); {errors.to && To is required}
To is required