DEV Community

Discussion on: Simplify controlled components with React hooks

Collapse
chandra profile image
Chandra Prakash Tiwari

I think you are not using the value of the state object as the value of input..
this is not the controlled input here.

<input type="text" name="username" onChange={handleInputChange} />