Keep your own React form.
Set action to your Endpoint form endpoint and give each input a name. The browser sends the form and opens a confirmation page. Replace YOUR_FORM_PUBLIC_KEY with the Public Key from the General tab.
export default function ApiContactForm() {
return (
<form action="https://api.surveyowl.co/v1/submit/YOUR_FORM_PUBLIC_KEY" method="POST">
<label htmlFor="email">Email</label>
<input id="email" name="email" type="email" required />
<label htmlFor="message">Message</label>
<textarea id="message" name="message" required />
<button type="submit">Send message</button>
</form>
);
}