If you are in web development, you have probably heard about Svelte Js. But you asked, why it is becoming so popular web framework and what benefit...
For further actions, you may consider blocking this person and/or reporting abuse
There are SSR tools such as NextJS for React and NuxtJS for Vue. They have become quite popular because you can now do SEO in JavaScript web apps, static exporting, optimized script generating, etc.
Is there anything similar to Svelte?
Also when doing TypeScript in React you get type-checking in the HTML because you write jsx (tsx).
In Vue you only have type-checking in the JavaScript part and not in the HTML.
Do you have the same type-checking level in Svelte as you do in React?
The last time I checked it, svelte doesn't really support legacy apps (the type where html is generated by backend code such as php) and is loaded separately from js files. I went with vuejs for that reason.
inertia.js
Thank you, this is interesting. I have implemented my own solution but this is definitely worth checking.
Thanks for sharing your experience. Vuejs is definitely a better choice for the legacy apps in that case.
I have this thing that I don't like to touch technologies that don't make it to the Stackoverflow survey results. Still, I always hated React's state management, so I would be happy to move somewhere if the market shifted. I plan to give Svelte a look. Just my personal opinion.
Thanks for sharing your thoughts. The market shift really matters for devs, so maybe somewhen it shifts to such technologies as Svelte, who knows. Anyway, it's a good idea to give Svelte a look, hope you would like it.
It's very similar to Riot JS which has been around for a lot longer - riot.js.org
Thanks for sharing. They both really have a lot of similarities.
I've already been down the Vue.js route and I'm not going down a similar route again with the potential to leave me unemployed altogether too often.
In this case, agree, Vue.js is a good option instead.
I was convinced I'll read the whole article after the second paragraph :)
It helped me to understand the differences, but I guess there is much more to it since your comparison basically only covers component development, right?
The whole topic of building apps including state management is still unclear to me and will need further investigation. (Can you recommend anything specific?)
For fully knowing when to use it and when not, as promised in that second paragraph, I think I need more information.
Sure, the article is more like a quick overview of the Svelte differences with the main focus on the components (as for me it's the main difference - just my opinion).
I can recommend resources that help me - I will not wonder you if I say that I started with Svelte documentation :) And these a few guides helped me a lot in the development process:
jsreport.io/building-an-app-with-s...
medium.com/swlh/simple-svelte-3-ap...
And about when to use it and when not, if you're going to use Svelte start with SPA development, think it's perfect for that. For MPA building, you can try to use Sapper framework sapper.svelte.dev/
How would it work if you wanted multiple pages, not just index.html?
You can try Sapper sapper.svelte.dev/ that works pretty well if each of your web pages is is a component.
Besides, here is another great guide of custom solution medium.com/swlh/simple-svelte-3-ap...
Nice ~3MB gif about scrolling on github. I wish I could scroll like this myself. :(
You know, gif is more like here to break the text and make the reading more engaging.
Besides, I just like to highlight that despite Svelte is a young framework, it has a big developers community.
Definitely agree, Svelte is a great option to use instead.
Thank you. I'll have a look at that