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.

FormsReach

Online

Name: Jessica Miller

Phone: +1 (415) 555-01XX

Message: “Need a quote for a 2-bed apartment remodel in Austin. Budget around $15k.”

Set up FormsReach with React

  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

React
// 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

Free

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

Starter & Pro

Larger monthly credit pools (2,000 or 8,000) for growing sites and multi-site volume. Same channels - email, WhatsApp via the official Meta API, webhooks. See pricing.

FAQ

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.

Related integrations

Ready to receive form leads?

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