DEV Community

Discussion on: Stop using useState for everything

Collapse
 
link2twenty profile image
Andrew Bone

When you have a form you can get data out of it quite easily by using the submit event.

Something like this.

It have the added benefit of being able to have lots of inputs in the form without needing lots of useRefs.