|
|
|
|
|
by arvinsim
2234 days ago
|
|
> And it makes it harder to do so. I hate doing forms in React. You basically have to reinvent the plumbing that's already standard with the HTML spec. Very tedious. Show me the HTML standard that supports SPA submissions that don't reload the page. It seems that your problem is about SPAs, not React. |
|
Any HTML form that uses a standard button element rather than a submit button. Attach a JS event listener to it, read the form, post by AJAX.
That was a thing long before React came along.