‹ BackHN Continuity

Thread

SvelteKit 3

408 points · 179 comments · sampsn

  1. argentinian · · focus · HN ↗
    Can somebody with experience using both compare Svelte/Sveltekit with Vue/Nuxt?
    1. brachkow · · focus · HN ↗
      I do. I wrote on this extensively there – <a href="https:&#x2F;&#x2F;www.brachkow.com&#x2F;notes&#x2F;my-experience-with-svelte&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.brachkow.com&#x2F;notes&#x2F;my-experience-with-svelte&#x2F;

      In short:

      1. Svelte is a good framework, but most of the DX praise comes from React folk. In my experience, Svelte is less polished and less comfortable to work with than Vue.

      2. The biggest problem with Vue is that your choice of SSR frameworks is limited to Nuxt, and Nuxt is, to put it mildly... not a good framework. It is full of reinventing the wheel, ambiguity, and foot guns. In my experience, I regretted every project I used Nuxt for.

      As I needed good SSR, SvelteKit was a breeze: everything just renders on the server when I want it to, proper client&#x2F;server separation, MVC-looking code.

      3. Svelte has way lower adoption than Vue, not to mention React. So there are not many 3rd party libraries, and even important tools like Storybook or ESLint struggle with it.

      It also tends to switch syntaxes a lot. Even this announcement contains a mention of switching from +page files to queries. This hurts AI usage a lot.

      As a conclusion: A year ago, I would say that you should pick Svelte where SSR is critical, and stay on Vue for the rest. But as we have <a href="https:&#x2F;&#x2F;inertiajs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;inertiajs.com&#x2F; right now, you can do SSR of any complexity in Vue + any backend you have.

      1. phoghed · · focus · HN ↗
        I used mainly Vue from 0.12 until 3 (migrated one project to 3 but didn’t work with it extensively), with a bit of react sprinkled in. Mainly react the last 4 years or so, which let’s be honest is mainly not me writing the code.

        I tried Svelte a couple times over the years, never really clicked for me though.

        1. norman784 · · focus · HN ↗
          Other advantages of Svelte over React&#x2F;Vue is that it does not require a Svelte specific library or wrapper, you can use vanilla JS libraries and it works seamlessly. I consider that as plus, you can old good old Chart.js, Ag-grid, etc without any wrapper, I tried some libraries with React&#x2F;Vue that had wrappers for multiple frameworks, and most of them were painful, because each framework&#x2F;library has their way to do things that collides with them, while Svelte is basically vanilla web tech with some sparkles over it.
          1. phoghed · · focus · HN ↗
            I&#x27;ve used various vanilla js libs with Vue over the years. It was always pretty easy to make a wrapper component and hook whatever library up to the lifecycle, usually just a few lines of code. I&#x27;d prefer that over just making random charts everywhere if I was using something like highcharts.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.