Skip to content

Change the index.js code in Mapchart with tooltip in documentation #384

@saad299

Description

@saad299

I was going through the documentation and found that the provided codes of Mapchart with tooltip were not working. It seems to me like the error was due to the importing of react-tooltip and due to the recent update of react-tooltip, there is no default export.

Change the line no. 3 in the index.js from:
import ReactTooltip from "react-tooltip";

to:
import { Tooltip as ReactTooltip } from "react-tooltip";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions