React

React contact form for any website

Add a React contact form to your website with the useFormsReach hook. No custom API route, no serverless handler, no DIY email pipeline. Deliver submissions by email with spam filtering and to WhatsApp in seconds, metered with monthly credits.

Set up FormsReach with React

Connect your form in a few steps. No custom backend required.

  1. 1

    Install the package

    Run npm install @formsreach/react (or pnpm/yarn). Create your API key in FormsReach.

  2. 2

    Use the hook

    const { submit, submitting } = useFormsReach('YOUR_API_KEY'). Attach submit to the form onSubmit handler and disable the button while submitting.

  3. 3

    Ship and test

    Deploy your React app. Submit once - check email and/or WhatsApp depending on your delivery settings.

React snippet

Copy this into your project, then swap in your FormsReach API key.

          // npm install @formsreach/react
import { useFormsReach } from '@formsreach/react';

function ContactForm() {
  const { submit, submitting } = useFormsReach('YOUR_API_KEY');

  return (
    <form onSubmit={submit}>
      <input type="text" name="name" required />
      <input type="email" name="email" required />
      <textarea name="message" required />
      <button type="submit" disabled={submitting}>Submit Form</button>
    </form>
  );
}
        

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

Troubleshooting

What you get

Monthly credits for submissions and delivery. Scale when volume grows.

Free

500 credits every month for form submissions, email, webhooks, and workflow rules. Spam filtering included. No credit card required.

Starter, Pro & Agency

Larger monthly credit pools (2,000 / 5,000 / 18,000). WhatsApp via Meta Business API unlocks on Pro and Agency. See pricing.

FAQ

Common questions about FormsReach with React.

Do I need a React server or API route?+

No. useFormsReach talks to the FormsReach form API. You do not need a custom backend for basic contact forms.

What does useFormsReach return?+

submit and submitting - use submit as the form onSubmit handler and submitting to disable the button / show loading UI.

Free vs Pro delivery?+

Email and WhatsApp via Meta WhatsApp Business API, with spam filtering. Usage is metered in monthly credits.

Does this work with Vite / CRA / SPA hosts?+

Yes - any React setup that can install npm packages. For Next.js App Router specifics, see the Next.js integration page.

More framework guides that use the same FormsReach form API.

Ready to receive form leads?

Create a free API key. Upgrade when you need more monthly credits.