Skip to main content
React works well with Formbase because you can choose between native form posts or programmatic submissions. Use native posts for the simplest setup, and use fetch when you need full UI control. The examples below use fetch with redirect: 'manual' to avoid following the Formbase redirect in the browser.
1

Create your form UI

Build the form as usual and give each input a name attribute.
2

Submit to Formbase

The FormData API serializes the form exactly like a normal browser post.
Browser submissions return a 303 redirect. Treat that as success in client-side code, or post from your server for a JSON response.