The SPA form problem
In a client-rendered React app there is no natural place to POST a contact form. Teams either abuse third-party email widgets, stand up a tiny API, or postpone the form entirely. FormsReach is the form API: the hook submits to our endpoint so you keep building UI, not infrastructure.
Platform notes
- Use uncontrolled inputs with
nameattributes (as in the snippet) so the hook can read FormData. - Handle success UI in your component after submit resolves (redirect or inline message).
- Prefer the Next.js page if you are on the App Router and need the
'use client'boundary spelled out.
Troubleshooting
- submit is not a function: Confirm import from
@formsreach/reactand that the hook is called inside a component. - Empty payload: Ensure inputs have
nameattributes. - Double submit: Disable the button with
submitting.