An open API service indexing awesome lists of open source software.

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

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