• Next.js

Next.js

Add the MintdropProvider into your _app.jsx or _app.tsx.

import "@mintdrop/sdk/style.css"
import { MintdropProvider } from "@mintdrop/sdk"
 
const DROP_ID = "... your drop ID"
 
const App = ({ Component, pageProps: { session, ...pageProps } }) => {
  return (
    <MintdropProvider drop={DROP_ID}>
      <Component {...pageProps} />
    </MintdropProvider>
  )
}
 
export default App