#Form State
1 messages · Page 1 of 1 (latest)
I would recommend not disabling the submit button at all. Disabling usually means additional local state that you have to manage, and it can be perceived as a broken form to the user. Implementing some type of form validation may take extra effort up front, but you'll end up with a more flexible experience for yourself and more intuitive experience for the user.
I'm a fan of https://conform.guide/
Make your form conform to the dom
Mark the input with required prop and let the browser handle it for you.
The HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. The element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input t...