score:1

Accepted answer
setValues({...values,
      [e.target.name]: e.target.value
    })

score:1

 [email,setEmail] : useState("");
 [password,setPassword] : useState("")

Related Query

More Query from same tag