Open dy opened 1 year ago
As in the example
class WordCount extends HTMLParagraphElement { ... } customElements.define("word-count", WordCount, { extends: "p" });
<p is="word-count"> … </p>
Is there a way to create such component via preact-custom-element?
As in the example
Is there a way to create such component via preact-custom-element?