JSFiddle - React, Tailwind, and code Playground

HTML

<svg id="a" height="210" width="400">
  <path id="b" d="M150 0 L75 200 L225 200 Z" />
</svg>

JavaScript

$("#b").hover(function() {
        console.log($(this)[0].outerHTML);
    });