by _heimdall · 3y ago · 0 comments
I very rarely use the shadow DOM APIs but really lean heavily into custom elements for simple lifecycle hooks. Similar to the example in this article, its really easy to server render the HTML and have a bit of JS hook on in the client.
The main downside is that there's no support for delaying the component, the custom element will be created and connected immediately.