Re:Web Components Are Okay
by mentalgear on Sunday September 29, 2024 @08:59AM
(#41687065)
One of the things I really appreciate about Svelte is its support for generating Web Components through the Custom Elements API. Since Svelte compiles down to plain JS/HTML/CSS, creating reusable components that work across any framework or vanilla JS becomes seamless. https://svelte.dev/docs/custom-elements-api
[ Parent
| on HN ]
even Rich admits this is not a top priority goal of svelte, so do not be surprised if the reality falls short of the promise.
Vue also does this! https://vuejs.org/guide/extras/web-components