Next.js
Detailed guide for integrating Bando's payment widget with Next.js. Learn how to add crypto payments to your Next.js application.
Because Next.js uses server-side rendering (SSR) and wallet libraries require client-side handling, the Bando Widget must be rendered on the client side. To achieve this, you should use the 'use client'
directive, which ensures the widget is loaded only in the client environment, bypassing SSR.
Here’s the setup for integrating the Bando widget with Next.js:
Using 'use client'
at the beginning of your component file ensures the widget operates strictly on the client side, making it compatible with SSR in Next.js.
Last updated
Was this helpful?