2 ms·
Better DOM APIs, surely. It could be anything from JSX to https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript https://github.com/Matt-Esch/
by dmitriid 10y ago
Better DOM APIs, surely. It could be anything from JSX to https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript https://github.com/Matt-Esch/virtual-dom/tree/master/virtual....
When all you can pass to an attribute is a string, it's very hard to seriously talk about useful extensible custom components on the web :)
- spankalee 10y agoProperties and children have you heard of them? Here's the docs for an element that has some arbitrarily complex properties and function-values properties, that you can set from plain JS or Polymer's template syntax or Angular's, etc... https://www.polymer-project.org/2.0/docs/api/elements/Polymer.DomRepeat https://www.polymer-project.org/2.0/docs/api/elements/Polyme... It also takes a template and stamps it out several times based on the complex data, like "higher-order components". It's very hard to seriously talk about web components with someone so willfully ignorant about them.
- dmitriid 10y agoI've heard about them. I also included an example in my article specifically about children. DOM APIs are a much bigger problem than just WCs, but are a part of the WC's problem as well