📅  最后修改于: 2022-03-11 15:03:05.789000             🧑  作者: Mango
import React from "react";
import { useForm, Controller } from "react-hook-form";
import PhoneInput, { isValidPhoneNumber } from "react-phone-number-input";
import "react-phone-number-input/style.css";
const MyForm = () => {
const {
handleSubmit,
formState: { errors },
control
} = useForm();
const onSubmit = (data) => {
console.log(data);
};
return (
);
};
export default MyForm;