News for hackers. Stuff that matters.
Re:Show HN: Minimalist Web Components for your static website by nojvek on Friday March 26, 2021 @04:52PM (#26596799)
Yep, but now you have two ways of doing a thing. With attributes you have attributeChangedCallback, with props you have set prop functions.

Attributes show up nice in dom explorer and make it easy to debug, props don’t.

I could go deep into this, when you bring typescript into the equation for large apps, there are all sorts of tradeoffs to keep in mind.

There are no comments on this comment yet.