-
-
Notifications
You must be signed in to change notification settings - Fork 538
Closed
Labels
Description
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
?