JSFiddle - React, Tailwind, and code Playground

HTML

<x-y></x-y>

JavaScript

customElements.define("x-y", class XY extends HTMLElement {});

alert(document.querySelector("x-y").constructor)