I have created this map with react-simple-maps and react-tooltip. I forked from a project but my ideal scenario here is
On click of the state, the tooltip shows up, but on mouse leave, the tooltip won't disappear. Instead, it stays there, and if. you hover over another state, the info changes on the tooltip but it doesn't move to the new hovered state.
Here is a sandbox link https://codesandbox.io/s/tsdw84
Thanks for the help in advance!!
I have solved it by