DEV Community

Discussion on: Refactor a form with React Hooks and useState

Collapse
 
giovannipds profile image
Giovanni Pires da Silva

It'd probably be cooler to just merge handleInputChange as you did but keep hooks separated.

Collapse
 
giovannipds profile image
Giovanni Pires da Silva

Pardon! I can be wrong, just tested a little stuff here and saw that my whole page was being loaded. Seems like not be a problem of this technique itself but an issue of my page/project/partial. Thank you for sharing your knowledge!