DEV Community

Discussion on: Svelte for web components, are we there yet?

Collapse
 
scott_yeatts profile image
Scott Yeatts

stenciljs.com/

Rich Harris has said he doesn't like a lot about web components and that they were added as an optional compile target, not the primary intent of svelte. (I'll see if I can find the link to his breakdown... Even if I don't agree with him, he's made some great tools and deserves props!)

Stencil has been great, infoQ put it in the early majority in Q1 of this year (with Svelte and Preact) and called it the "the most popular web component creation framework" in that same article (infoq.com/articles/javascript-web-...)

I've used it since beta. Even with native Typescript and JSX, it's the closest I've come to feeling like I was just writing vanilla JavaScript since I started with Angular.js back in... 2013? I think? Haha.

Anyway, it eliminates the DSL-syntax you can get with a lot of the older frameworks and things like svelte (which all have their place, nobody shoot me!). There's some syntax to get used to, but it was pretty simple to pick up just looking at the docs.

Especially since there are official guides for integrating with the major frameworks (I'm a vanilla stencil-lover myself, but there are tons of reasons to use a framework too) it's a great tool to build a design system or an app.

Now I gotta go find Max and get him to pay a promo fee or something... I feel like a salesman over here 🤣

Collapse
 
scott_yeatts profile image
Scott Yeatts

Aforementioned props to Rich Harris:
dev.to/richharris/why-i-don-t-use-...

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I think your my new favourite person!

Thread Thread
 
scott_yeatts profile image
Scott Yeatts

Haha, hope I was helpful, thanks for the compliment!