JSFiddle - React, Tailwind, and code Playground
HTML
<svg width="100" height="100">
<circle cx="50" cy="50" r="40" focusable="true" onclick="alert(this.focusable)" />
</svg>
JavaScript
Object.defineProperty(SVGElement.prototype, "focusable", {
configurable : false,
enumerable : false,
get: function focusable() {
alert("get");
return "Yeah";
},
set: function focusable(val) {
alert("set");
return "Ok";
}
});