How to show a Material-UI V4/V5 Tooltip at the cursor
Recently, I needed to place a tooltip at the tip of the cursor, and it took a little bit of trial and error to get it to work. Here is the code I used.
Material-UI V4 Tooltip
Material-UI V4 uses the older V1 of the Popper.js library. To get it to work, I followed the mouse and put its position in state, and then used the position to adjust the Tooltip’s Popper using the computeStyle function: