Skip to content

Commit

Permalink
docs: fix typo and "use client" snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljablonski committed Jun 22, 2023
1 parent 242781c commit 026c7fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ To use `react-tooltip` on Next.js 13 without having to tag your component or pag

:::caution

Avoid naming the file `react-tooltip.tsx` (or with whichever extension your project uses), since it may interfere with your editor's autocomplete funcionality.
Avoid naming the file `react-tooltip.tsx` (or with whichever extension your project uses), since it may interfere with your editor's autocomplete functionality.

:::

```jsx
// src/components/ReactTooltip.tsx
'use client'

export * from 'react-tooltip'
export { Tooltip } from 'react-tooltip'
```

And in the place that you are importing React Tooltip:
Expand Down

0 comments on commit 026c7fa

Please sign in to comment.