Philip on Nostr: Hey #WebDev a while ago I read a blog post about different ways to style your code to ...
Hey #WebDev a while ago I read a blog post about different ways to style your code to define #WebComponentrs. I think it was in relation to having a base class / component factory.
Thinking about style choices like
class MyComponent extends HTMLElement {}
customElements.define(“my-component”, MyComponent)
or
customElements.define(“my-component”, class extends HTMLElement {})
Anyone remember that article?
/cc npub18y0krd872uvmzkpzld6a6yzz033qwgke3ahf8u6e40qp42gp90wqktdsym (npub18y0…dsym) npub1xed99rf8rwyf22ery4rrutnzjcrqy6ha6yh3cykjh247xd2lkjss9eyg9w (npub1xed…yg9w)
Thinking about style choices like
class MyComponent extends HTMLElement {}
customElements.define(“my-component”, MyComponent)
or
customElements.define(“my-component”, class extends HTMLElement {})
Anyone remember that article?
/cc npub18y0krd872uvmzkpzld6a6yzz033qwgke3ahf8u6e40qp42gp90wqktdsym (npub18y0…dsym) npub1xed99rf8rwyf22ery4rrutnzjcrqy6ha6yh3cykjh247xd2lkjss9eyg9w (npub1xed…yg9w)