Show HN: Tiniest Web Component

ceving | 20 points

When claiming copyright, you should mention the date of first publication and if applicable, the last significant revision. Not the current date.

vwelling | a month ago

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?

jjice | a month ago

Is there a good reason to use a shadow root for this instead of just directly setting innerText

KTibow | a month ago
dannye | a month ago

Safari has support for "is" attribute now?

phillipseamore | a month ago

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?

drivingmenuts | a month ago

Excellent example for someone trying to wrap their arms around web components.

tomcam | a month ago

this code isn't what's rendered. there's something about `this.textContent - ${year}` but that's not what we're seeing in output.

cranberryturkey | a month ago