3 ms·
The web components standards mostly deal with lifecycle and composition, not templating. One could easily not use a template system at all, or compile-to-JS tem
by spankalee 11y ago
The web components standards mostly deal with lifecycle and composition, not templating. One could easily not use a template system at all, or compile-to-JS template language like JSX, in a web component.
Looping and conditionals are often included in template languages because those are the most often used and most declarative control structures. More complex manipulations are left to code. This tends to work out very well in practice.