Show HN: Tiniest Web Component
Tangential, but what's the state of web components at the moment? As a backend engineer, they were very appealing early on since I didn't want to deal with adding an entire framework onto a simple project. How'd that work out? It seems like the big frameworks are still kind by a mile and they provide a much easier developer experience still. Am I wrong there?
Is there a good reason to use a shadow root for this instead of just directly setting innerText
There are some issues with this code: https://gist.github.com/ceving/6e65886e04563ed9e6e42cc5f8d3f...
Safari has support for "is" attribute now?
Is it necessary to use a web component to do what you could do with a snippet of Javascript? What is the use case for this?
Excellent example for someone trying to wrap their arms around web components.
this code isn't what's rendered. there's something about `this.textContent - ${year}` but that's not what we're seeing in output.
When claiming copyright, you should mention the date of first publication and if applicable, the last significant revision. Not the current date.