How to setup Superflow with Next.js
page.tsx
filepage.tsx
initSuperflow
from the NPM package and use it to initialize Superflow.
Create a useEffect
hook and paste in the unique Superflow code you copied earlier.
Be sure to add "use client"
at the top of your page.tsx
file to enable client side data-fetching.
?review=true
at the end of your url??review=true
at the end of the URL to enable Superflow.
Example: mywebsite.com/?review=true