DEV Community

Cover image for Svelte: My thoughts πŸ€”

Posted on


Svelte: My thoughts πŸ€”

Welcome peeps to this week's article where I would be discussing Svelte, the new framework revving to hit the moon with their objectives, objectives I believe is achievable.

As sourced from the official site, Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app.
Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes.

I played with Svelte and pretty much enjoyed it for a side-project. It's quick, doesn't utilize V-Dom and has an easy syntax. Sveltekit is a svelte framework, a solid one. I don't know much about it since I haven't played with it myself but I do know that it is efficient and Next.js better watch out.

Is Svelte better than Remix? No in my opinion. Svemix is an unofficial thing though, Svelte + Remix. In my opinion, it is quite inefficient. Use what works best for you though, if Angular appeals to you and delivers, use it. Don't sway for other opinions though, not worth swaying for them.

Final thought on Svelte, interesting framework with a unique approach compared to React. I am excited for it's future and would keep on using it for small side-projects and playing with it. I think you React devs out there ought to give it a try, a small chance. Might be worth it. See you next time πŸ‘‹

Top comments (4)

jonrandy profile image
Jon Randy πŸŽ–οΈ • Edited

RiotJS was doing very similar things years before Svelte even existed. It's hardly a 'radical new approach '.

Riot is now on V6, and is a joy to work with. I suggest checking it out

shafspecs profile image

Looks cool. At first glance, I can see some similarities with Svelte. Playing with it should be fun

t0nyba11 profile image
Tony B

End of the day, Svelte is more simple to use, and creates much faster, more optimized, apps, than React or Angular or Vue.

shafspecs profile image

Agree. It's simple and quite efficient, I πŸ’― agree. Try Remix in the meantime 😌, jk

11 Tips That Make You a Better Typescript Programmer


1 Think in {Set}

Type is an everyday concept to programmers, but it’s surprisingly difficult to define it succinctly. I find it helpful to use Set as a conceptual model instead.

#2 Understand declared type and narrowed type

One extremely powerful typescript feature is automatic type narrowing based on control flow. This means a variable has two types associated with it at any specific point of code location: a declaration type and a narrowed type.

#3 Use discriminated union instead of optional fields


Read the whole post now!