This is probably the best write-up on Web Components I've read so far. Thank you! It confirms my choice to use Web Components as an framework-agnostic approach to code an Open Source library as a toolset for custom web apps.
Do you have any opinions on using Svelte for coding Web Components?
I think Svelte is really interesting because it has a compilation step. That is a double-edged sword because it means you are abstracted from the final component. The LitElement I make is directly inherited from an HTMLElement, so I have a much stronger feeling of being close to the metal, so to speak. BUT the compilation step means no dependencies, or at least very few. So your end product is maybe the lightest-weight component possible. Also, compilation lets Svelte do cool things that something like LitElement readily couldn't. Trade-offs.
Overall I think just use what appeals to you. Highly recommend trying a few different ones so you don't get yourself stuck in a mindset.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is probably the best write-up on Web Components I've read so far. Thank you! It confirms my choice to use Web Components as an framework-agnostic approach to code an Open Source library as a toolset for custom web apps.
Do you have any opinions on using Svelte for coding Web Components?
I think Svelte is really interesting because it has a compilation step. That is a double-edged sword because it means you are abstracted from the final component. The LitElement I make is directly inherited from an HTMLElement, so I have a much stronger feeling of being close to the metal, so to speak. BUT the compilation step means no dependencies, or at least very few. So your end product is maybe the lightest-weight component possible. Also, compilation lets Svelte do cool things that something like LitElement readily couldn't. Trade-offs.
Overall I think just use what appeals to you. Highly recommend trying a few different ones so you don't get yourself stuck in a mindset.