3 ms·
> React Components can be arbitrarily complex and accept arbitrarily complex properties. Web Components can be arbitrarily complex and accept arbitrarily compl
by spankalee 10y ago
> React Components can be arbitrarily complex and accept arbitrarily complex properties.
Web Components can be arbitrarily complex and accept arbitrarily complex properties or children.
Did you even try Web Components before spewing falsehoods?
- jakelazaroff 10y agoThe W3C editor's draft for custom elements clearly states that attributes are sequences of DOMString: https://w3c.github.io/webcomponents/spec/custom/#concept-custom-element-definition-observed-attributes https://w3c.github.io/webcomponents/spec/custom/#concept-cus...
- spankalee 10y agoSo? Properties are objects and children are nodes.
- dmitriid 10y agoSo, basically, "we push everything to JS and we have the curse of the empty body tag where everything is rendered with JS" turned into "we push everything to JS and we have the curse of the empty body tag where everything is rendered with JS ... but with WebComponents! So it's cool now!"