DEV Community


Discussion on: Refactor a form with React Hooks and useState

damcosset profile image
Damien Cosset Author

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.