Skip to content

Single Tooltip default ID from version 4 to 5 #1092

@0stone0

Description

@0stone0

I'm using React Tooltip v4 in my React application.

A single <ReactTooltip /> is rendered in the index.js and I'm adding multiple Tooltips in deeper components using

<div data-tip={'Fany ToolTip'}>{'Foo Bar'}</div>

So when following the Upgrade Guide from V4 to V5, I was supprised to see that the id prop on the Tooltip component is required.

Therefore, I'll need to update all my deep Tooltips to include some data-tooltip-id='tt'.

This is quite some extra work, and since I only use 1 Tooltip component, there is no need for unique ID's.

Is there a way to use a single <Tooltip /> component, with deeper data-tooltip-content without defining a data-tooltip-id?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions