by _benj · 7y ago · 0 comments
Now, I know how opinionated we all are and how the best thing is what we already know, but after working with Vue and React extensively (the company I currently work for uses Vue/TS for a huge app, think over 1000+ .vue files) the particularity about svelte is that you hardly notice that you are using it!
Vue has the Vue way and React has prophet Abramov to light the way, but svelte is completely out of your way. You wanna follow MVC? go ahead, DDD? why not?
I have learned more HTML5 and CSS3 using svelte than any of the other frameworks because it encourages you to use it, because the wheel has been invented already.
Again, everybody has their opinion but for me svelte is the framework that has the least magic of all, the you can set it up without a incredibly complicated webpack config or obscure 'create-react-app' that makes it very easy to start a project but you don't really know what's happening underneath.
And it just HTML and probably 5 or 6 extra JS things like $: and a different use for export in a component.
If you are already religious about your framework, good for you, but if you are open to ideas, take a look a svelte!
If you're going to go this far, why not use Marko.js and get SSR streaming built in?
But if svelte can do both, eliminate the boilerplate and at the same time minimize the cognitive burden of having to work with DOM, then im interested. But i rarely have noticed that React makes me angry the way it used to. So do i want to switch, like the stereotypical frontend hipster, to another hype framework and code the next customer app with it? I'll need a lot more convincing first
This really doesn't make any sense. Not learning how to effectively use HTML and CSS doesn't have anything to do with what frontend framework you're using.
The older I get as a developer the more I realize that simple is not easy to accomplish. That's probably why I like svelte :)
1. components (creating re-usable UI parts (i.e. components) that combine data and their rendering)
2. reactivity - re-rendering UI when data changes.
Web Components only solve one of those problems. And arguably not as well.