4 ms·
There have always been interesting aspects to custom elements seamlessly integrated into the DOM of browsers, but let's be honest, the current API is… shall we
by ttfkam 3y ago
There have always been interesting aspects to custom elements seamlessly integrated into the DOM of browsers, but let's be honest, the current API is… shall we say somewhat unwieldy.
Little known fact: adding one line of code turns your Svelte component into a custom element (aka web component).
https://svelte.dev/docs/custom-elements-api https://svelte.dev/docs/custom-elements-api