DEV Community

loading...

Discussion on: Refactor a form with React Hooks and useState

Collapse
damcosset profile image
Damien Cosset Author

Hello!
I should have explored the performance aspect of the refactoring! I didn't consider that when I wrote that article unfortunately. I would recommend having your state variables separated when using hooks. You can find more informations on the React docs right here.