Hello. I need to use a class to register a custom...
# javascript
t
Hello. I need to use a class to register a custom element. I do
window["customElements"]["define"]("my-element", MyElement::class)
but of course it's not working (
::class
not working for the moment), do you have an alternative? Thx