import './SignUp.css' import { useForm } from 'react-hook-form' import { zodResolver } from "@hookform/resolvers/zod" import { useNavigate } from 'react-router-dom'; import { Form1Data, form1Schema } from './signUpSchema' export const SignUpForm1 = () => { const { register, handleSubmit, formState: { errors }, trigger } = useForm({ resolver: zodResolver(form1Schema), }); const navigate = useNavigate(); const onsubmit = (state: Form1Data) => { navigate('/sign-up/form2', { state }) } const onerror = (err: any) => console.log(err); return ( <>

会員登録 フェーズ 1

{errors.name?.message}
{errors.kana?.message}
trigger('tel3') })}>- trigger('tel3') })}>-
{errors.tel3?.message}
); }