Last active
August 13, 2021 07:37
-
-
Save BjornDCode/ea370256a551542df8e830e1403fcf29 to your computer and use it in GitHub Desktop.
Embed form in Next.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Head from 'next/head' | |
export default function Home() { | |
return ( | |
<div> | |
<Head> | |
<script type="text/javascript"> | |
{` | |
window.Reform=window.Reform||function(){(Reform.q=Reform.q||[]).push(arguments)} | |
`} | |
</script> | |
<script | |
id="reform-script" | |
async | |
src="https://embed.reform.app/v1/embed.js" | |
></script> | |
<script type="text/javascript"> | |
{` | |
Reform('init', { | |
url: 'https://forms.reform.app/XM7SfH/untitled-form-3', | |
target: '#my-reform', | |
}) | |
`} | |
</script> | |
</Head> | |
<main> | |
<div id="my-reform"></div> | |
</main> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment