Skip to content

Commit 23b72d0

Browse files
docs: remove references to css file
1 parent bad3476 commit 23b72d0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

docs/docs/examples/place.mdx

-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Changing the placement for the ReactTooltip component.
88

99
import { useState } from 'react';
1010
import { Tooltip } from 'react-tooltip'
11-
import 'react-tooltip/dist/react-tooltip.css'
1211

1312
export const TooltipAnchor = ({ children, id, ...rest }) => {
1413
return (
@@ -41,7 +40,6 @@ The `place` prop and the `data-tooltip-place` attribute accept the following val
4140

4241
```jsx
4342
import { Tooltip } from 'react-tooltip';
44-
import 'react-tooltip/dist/react-tooltip.css';
4543

4644
<a id="my-tooltip-anchor">◕‿‿◕</a>
4745
<Tooltip anchorSelect="#my-tooltip-anchor" content="Hello world from the top!" place="top" />
@@ -60,7 +58,6 @@ import 'react-tooltip/dist/react-tooltip.css';
6058

6159
```jsx
6260
import { Tooltip } from 'react-tooltip';
63-
import 'react-tooltip/dist/react-tooltip.css';
6461

6562
const PLACES = ['top', 'right', 'bottom', 'left']
6663
const [place, setPlace] = useState(0)

docs/docs/troubleshooting.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ If there isn't, feel free to [submit a new issue here](https://github.com/ReactT
5454

5555
## The tooltip is broken/not showing up
5656

57-
Make sure you've imported the default styling. You only need to do this once on your application, `App.jsx`/`App.tsx` is usually a good place to do it.
57+
Make sure you've imported the default styling. You only need to do this once on your application and only if you are using a version before `5.13.0`, `App.jsx`/`App.tsx` is usually a good place to do it.
5858

5959
```jsx
6060
import 'react-tooltip/dist/react-tooltip.css'

0 commit comments

Comments
 (0)