Skip to content

Commit a2ba43a

Browse files
docs: improve troubleshooting page
1 parent 6418cba commit a2ba43a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/docs/troubleshooting.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ To use `react-tooltip` on Next.js 13 without having to tag your component or pag
163163

164164
:::caution
165165

166-
Avoid naming the file `react-tooltip.tsx` (or with whichever extension your project uses), since it may interfere with your editor's autocomplete functionality.
166+
Avoid naming the file `react-tooltip.tsx` (or with whichever extension your project uses), since it may interfere with your editor's autocomplete functionality, and your bundling/compiling process.
167167

168168
:::
169169

@@ -174,14 +174,14 @@ Avoid naming the file `react-tooltip.tsx` (or with whichever extension your proj
174174
export { Tooltip } from 'react-tooltip'
175175
```
176176

177-
And in the place that you are importing React Tooltip:
177+
When importing the tooltip:
178178

179179
```jsx
180-
//Old
180+
//OLD
181181
import { Tooltip } from 'react-tooltip'
182182
```
183183

184184
```jsx
185-
//New
186-
import { Tooltip } from 'components/react-tooltip'
185+
//NEW
186+
import { Tooltip } from 'components/ReactTooltip'
187187
```

0 commit comments

Comments
 (0)