https://github.com/alizahid/next-use-panelbear
Panelbear hook for Next.js
https://github.com/alizahid/next-use-panelbear
Last synced: 21 days ago
JSON representation
Panelbear hook for Next.js
- Host: GitHub
- URL: https://github.com/alizahid/next-use-panelbear
- Owner: alizahid
- License: mit
- Created: 2021-04-13T03:03:50.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-13T03:48:54.000Z (about 4 years ago)
- Last Synced: 2025-04-02T07:35:30.918Z (24 days ago)
- Language: TypeScript
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# next-use-panelbear
This is just a convenience wrapper around [@panelbear/panelbear-js](https://github.com/panelbearhq/panelbear-js) for [Next.js](https://nextjs.org)
## Install
`yarn add next-use-panelbear`
## Usage
### JavaScript
```typescript
import { usePanelbear } from 'next-use-panelbear'
import React from 'react'const App = ({ Component, pageProps }) => {
usePanelbear('SITE_ID', {})return
}export default App
```### TypeScript
```typescript
import { usePanelbear } from 'next-use-panelbear'
import { AppProps } from 'next/app'
import React, { FunctionComponent } from 'react'const App: FunctionComponent = ({ Component, pageProps }) => {
usePanelbear('SITE_ID', {})return
}export default App
```## Dependencies
- React
- Next