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
Oh man, thanks a lot, that actually saves me quite a lot of headache. I don't know if I'm missing something super obvious after too many hours of staring at this, but I tried something that I was thought was 1:1 equivalent, namely:
But this will produce
(b || []).forEach is not a function
, but those should be equivalent, at least according to the diff between those objects.