4 ms·
Svelte is a a breath of fresh air because of its simplicity, not because it's bundle size (which is a bonus). It's especially easy to get up and running and th
by turtlebits 6y ago
Svelte is a a breath of fresh air because of its simplicity, not because it's bundle size (which is a bonus). It's especially easy to get up and running and the documentation is great.
React/Vue/Angular you have to learn the build system as well as the ins and outs of the framework, and there are too many opinionated ways of getting started.
- preommr 6y agoHow is this complicated: ``` <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.js"></script> https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.js"></scrip... var app = new Vue({ el: '#app', template: "{{message}}" data: { message: 'Hello Vue!' } }) ``` A lot of the build problems with react/vue also exist with svelte. In fact it's even worst with svelte because it's compiled only (which is it's unique selling point) whereas vue can be used in a much more progressive manner. React is a little bit harder because of jsx, but it's still not that much more complicated. Build-wise, parcel supports jsx/vue files out of the box. Plus React/vue both have cli tools that I don't like and wouldn't recommend, but are super easy to get started with. And this all comes with the giant caveat that react/vue make progress which can lead to confusing versions. Svelte is a lot younger (kind of, it came out a few years back, so idk) so it hasn't had to cross that bridge yet. And even then, there was the confusion with Sapper. I highly doubt that svelte is going to be immune from the fast-paced nature of these frameworks.
- turtlebits 6y agoWhile that works, you won't get very far without having to switch over to a build system, then learn how to configure/use that. Look at VueJS and React installation pages and it's easy to see the problem with modern frameworks. https://v3.vuejs.org/guide/installation.html#release-notes https://v3.vuejs.org/guide/installation.html#release-notes https://reactjs.org/docs/add-react-to-a-website.html https://reactjs.org/docs/add-react-to-a-website.html
- noir_lord 6y agoUsed vue for a few years then new place was svelte, I like it it but not because of the simplicity (or more because the simplicity that comes from it's killer feature), I like it because it's compiled. So a lot of the abstractions that make life pleasant simply go away. The in-browser dev tools (svelte tools) lag far behind vue dev tools but it's newer.