Add it to the page

In Assets, open Code and create a code file. Add the React component below, place it on the page, and publish. Test the form and confirmation on the published site.

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