Add it to the page

Create src/pages/contact.jsx with the form component. Verify the action in the generated page and test the published form with JavaScript disabled and enabled.

Connect your form

Replace the example origin and access key with the values from your form’s setup screen. Send a test message from each site you publish and check the submission in your inbox.

JSX
import * as React from "react";

export default function Contact() {
  return (
    <form action="https://api.bitebrake.com/api/submit" method="post">
      <input type="hidden" name="access_key" value="YOUR_FORM_ACCESS_KEY" />
      <label>Email <input name="email" type="email" required /></label>
      <label>Message <textarea name="message" required /></label>
      <button type="submit">Send message</button>
    </form>
  );
}

Test the deployment

Submit a test message from the deployed page, check your form inbox, and verify the recipient can reply.

Related resources

Create a formBrowse platforms