Add it to the page

Put this component in the route or dialog where visitors contact you. If you add an onSubmit handler, prevent default only when you are sending the request yourself.

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