by nojvek · 5y ago · 0 comments
There are micro libs like snabbdom that get you that.
However in my 4 years of building complex webcomponents , the missing pieces are a same way to do templating and a sane way to declare attribute schema
Webcomponents assume all attributes are strings, but you deffo end up needing to parse numbers, Booleans and objects from it.
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.