How to render React Component in tooltip

Hi @walter,
I should show my own React Component in the tooltip,I have tried to achieve that but it’s not working and I’ll share the code snippet.

 const myToolTip = $(go.HTMLInfo, {
      show: showToolTip,

const showToolTip = (obj, diagram) => {
        console.log("diagram", diagram)
       <TooltipHelper tooltipData={Data} />

I can found the console in the browser but the tooltipHelper component did not show in the diagram.

You’ll probably want to take a look at the gojs-react-tooltip sample. It demonstrates showing a React tooltip from GoJS. In particular, the DiagramWrapper.tsx file.