I have a form in React that I want to be unsubmittable during the following 2 conditions:
- JS is disabled
- My App bundle hasn't been downloaded / parsed yet
The app is server side rendered, so the form is visible before the app bundle has finished downloading on the client side. If the form is submitted before the bundle finishes, the form will make a request and append the form parameters to the url.
I've tried setting blank settings like
<form onSubmit="return false">
</form>
Setting the form to disabled initially and then enabling it on componentDidMount() seems like a solution, but I'm wondering if there's some HTML attribute I can add to the form or submit button instead.