4 ms·
Check Svelte out (https://svelte.technology/ https://svelte.technology/). From the docs: "... rather than interpreting your application code at run time, your
by cohort 9y ago
Check Svelte out (https://svelte.technology/ https://svelte.technology/). From the docs: "... rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time. That means you don't pay the performance cost of the framework's abstractions, or incur a penalty when your app first loads."
- kylecordes 9y agoSvelte is quite appealing, especially for the "reusable widget" layer web development. But there are two areas where there's probably room for something else to swoop in: * Pervasively typed with TypeScript, written in TypeScript, completely first-class. (It is very easy to consume TypeScript base code from JavaScript, but tacking types onto something written without them almost always yields a much lesser experience.) * Output standards-compliant web components by default. (Perhaps with room to also output some other variation of component, if there is some API aspect where that helps.) (Distraction for another day: I think the future of SPA development will be web components at the widget/component level, while application frameworks start evolving upward to provide more features around building applications - because there is less for them to do around building components.)
- rich_harris 9y agoSvelte does now offer an option to compile directly to web components, though it's experimental at this time. You could give StencilJS a go - it's web components through and through, and uses Typescript.
- yesimahuman 9y agoThis is how we're approaching it with Stencil: https://stenciljs.com/ https://stenciljs.com/