3 ms·
This looks exactly like svelte named slots syntax: https://blog.logrocket.com/comprehensive-guide-svelte-components-slots/ https://blog.logrocket.com/comprehens
by easyThrowaway 3y ago
This looks exactly like svelte named slots syntax: https://blog.logrocket.com/comprehensive-guide-svelte-components-slots/ https://blog.logrocket.com/comprehensive-guide-svelte-compon...
- vmfunction 3y agoSPA like React, Vue, Angular, Svelt, solid, should be not needed if HTML implemented these features. Or make JSX a standard again such as E4X.
- afavour 3y agoAll of the libraries you’ve listed offer features above and beyond what we’re talking about here. Plus, web components exist, they do most of it and yet the libraries still exist.
- williamcotton 3y agoSee: $ becoming querySelector.
- eyelidlessness 3y agoI’m all for standardizing JSX, but I think we should be clear that its only similarity to E4X is syntax. The latter corresponds directly to the browser/HTML/XML DOM, whereas the former corresponds to nothing in particular except the semantics you might give it. I’d also be interested in a revival of E4X as a potential implementation of standardized JSX, but I’d be disappointed (and I think many JSX users would be too) if the standardization coupled the two completely.
- montroser 3y agoYes, many frameworks including svelte took heavy inspiration from various parts of the Web Components specs, including named slots. So, this is the original thing that svelte and others copied.
- paulddraper 3y agoAnd that's not a coincidence; svelte chose to borrow that concept from Web Components.