@akihiro-inagaki
Revisions
Report this question
Subscribe question
Help us understand the problem. What is going on with this question?
Q&A

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
1
Answer

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

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

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

0
Help us understand the problem. What is going on with this answer?
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした