JSFiddle - React, Tailwind, and code Playground
HTML
<svg>
<rect onmouseover="runme()" width="100" height="100" stroke="black" stroke-width="2" fill="transparent">
<text stroke="red" x="0" y="0">Wheee</text>
</rect>
</svg>
JavaScript
function runme() {
console.log("got er")
}