I need Tooltip component from two libraries. For example
import { Tooltip } from "react-leaflet";
import { Tooltip } from "recharts";
But the same name of Tooltip of two libraries, I get an error. How to import Tooltip without error.
I need Tooltip component from two libraries. For example
import { Tooltip } from "react-leaflet";
import { Tooltip } from "recharts";
But the same name of Tooltip of two libraries, I get an error. How to import Tooltip without error.
import { Tooltip as LeafletTooltip } from "react-leaflet";
And then using <LeafletTooltip>
below
import { Tooltip as ReactLeafletTooltip} from "react-leaflet";
import { Tooltip as RechartsTooltip} from "recharts";
then use it in render as
<RechartsTooltip/>
<ReactLeafletTooltip/>
© 2022 - 2024 — McMap. All rights reserved.