Different ways of defining custom elements
How/where do you call `customElements.define`?
I’m all for people sharing their coding style. Some really good ideas here. It might seem inconsequential but ergonomic improvements like this can make a significant improvement to how people understand code. I’m going to have to use this next time I create a web component.
Responses
See how to respond...
Respond via email
If you'd prefer to message me directly, send an email. If you'd also like your message to be visible on the site I can add it as a comment.
Reply via Email
Respond from another site
Responses are collected from posts on other sites. Have you posted somewhere that links to this page? If so, share the link!