This is an example of how to render React component for Highcharts tooltip using React portals. See Chart.tsx
and Tooltip.tsx
files below. Latest Highcharts version is required for the example to work correctly (9.0.0 at the time of writting).
Codesandbox: https://codesandbox.io/s/highcharts-react-tooltip-ut1uy
@dankremniov Hi Dan

I have faced an interesting bug with the tooltip
If there is more than one chart, at some point in time, it will break the tooltip for one of them
The problem is that the Tooltip component start getting the wrong chart instances for some reason
I cannot understand why it's happening and how to avoid it
I have two different components, which use this component on the same page
After some debugging, I found that
chart.index
is wrong for some reasonDo you have any ideas about what it could be?