LoginSignup

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

reactで何をやっているのかわからなくなってしまいました。

ここの部分って何をやっているのかわかりませんか?
function Signup (){
  const {register,handleSubmit}=useForm()

return(
 <>
    <h2>signup</h2>
    <form onSubmit={handleSubmit(onSubmit)}>
<FormInput 
           label={"ユーザー名"}
           type={"text"} 
           inputRef={register}
           name={"userName"}
           />
           <FormInput 
           label={"パスワード"} 
           type={"password"} 
            inputRef={register}
            name={"password"}
            />
           <FormInput 
           label={"e-mail"}
           type={"email"}  
           inputRef={register}
           name={"email"}
           />)
0

1Answer

ちょっと何がわからないのかがわかりません。

ユーザー名、パスワード、メールアドレスが書いてあるformをsubmitするsignup処理ではないでしょうか。

これはご自身で書かれたプログラムですか?それともどこかからコピペしたものですか?

0

Your answer might help someone💌