This is just a convenience wrapper around @panelbear/panelbear-js for Next.js
yarn add next-use-panelbear
import { usePanelbear } from 'next-use-panelbear'
import React from 'react'
const App = ({ Component, pageProps }) => {
usePanelbear('SITE_ID', {})
return <Component {...pageProps} />
}
export default App
import { usePanelbear } from 'next-use-panelbear'
import { AppProps } from 'next/app'
import React, { FunctionComponent } from 'react'
const App: FunctionComponent<AppProps> = ({ Component, pageProps }) => {
usePanelbear('SITE_ID', {})
return <Component {...pageProps} />
}
export default App
- React
- Next