React useState hooks login probelem

i am creating a login form but the value from the input needs to send by using axios post to server but my password is not coming from input value

this is happening because you forgot to spread your old state values on line 16 so when you update email there’s no password value in state therefore password value is undefined…

heres is a working example of your code