Svelte 5 finally dropped!

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 20

  • @spidey_bs109
    @spidey_bs109 18 днів тому +3

    bro two vids in 1 week, keep up the good work my asian G

  • @LucasSchindlerSalmerón
    @LucasSchindlerSalmerón 18 днів тому +1

    OMG, thanks very much for this video. It helps a lot. Will use it on tuesday. Thank you very much!!!

  • @hamm8934
    @hamm8934 16 днів тому +2

    Svelte 5 aka Vue3 from 2019 with minor API and performance differences

    • @nevillebrem
      @nevillebrem  16 днів тому +1

      🧐

    • @flyntwick
      @flyntwick 9 днів тому +1

      Definitely feels like it. Logically, I understand the changes. Syntactically it seems like regression.

  • @pookiepats
    @pookiepats 11 днів тому +1

    Preact’s “HTM” is far superior to JSX
    MDX is the only tolerable way to write svelte now.
    Ugly arse syntax and they will keep changing it. Can’t build anything on it without inviting endless maintenance, Svelte is one man’s ego project y’all are crazy.
    There’s a reason Svelte still hasn’t popped in Commercial.

  • @babakfp
    @babakfp 17 днів тому +1

    Svelte is reinventing JSX but worse.

    • @nevillebrem
      @nevillebrem  17 днів тому +1

      not at all bruh. they don't want to be jsx but sth new. sth better

    • @babakfp
      @babakfp 16 днів тому +1

      @nevillebrem They don't want JSX, and as a result they built something worse.

    • @nevillebrem
      @nevillebrem  16 днів тому

      @@babakfp why worse?

    • @b1mind
      @b1mind 16 днів тому +1

      JSX is cursed af.... HTML first all day all the way.

    • @babakfp
      @babakfp 12 днів тому

      ​ @nevillebrem ​@b1mind
      JSX is awesome. In JSX, components are just functions. That's it. But in Svelte 5 you have two different things. One is called a component and another called a Snippet. They are not the same. Their TypeScript type is different. The syntax is something completely new, and you need to learn. When you want to pass a snippet to a function inside the script tag, you need to declare the snippet outside the script tag (and inside the template part) and then reference it inside the function inside the script tag. In JSX, it's just as simple as using functions. There is no new and weird things to learn. It's just JavaScript.
      In Svelte, you can't have a prop that accepts both the `Component` and `Snippet` types. The way that Components and Snippets work are different. Because of this, when dealing with props, you most use the `` syntax for the `Component` type and the `{@render MyComponent()}` syntax for type `Snippet` type to render them. Well, you can just use a condition to check if the prop is type of `Component` or `Snippet`, right? Wrong, you can't! It's not possible to differentiate between a `Component` and a `Snippet`.
      In JSX, you don't face with issues and limitations like this.

  • @karenthelowest1777
    @karenthelowest1777 18 днів тому +8

    Install Arch Linux and delete GayOs 😡🤬

    • @nevillebrem
      @nevillebrem  18 днів тому

      😂

    • @pookiepats
      @pookiepats 11 днів тому +1

      GayOS? Lol who hurt you

    • @nevillebrem
      @nevillebrem  11 днів тому

      @pookiepats it's alright he's a friend 😂

    • @pookiepats
      @pookiepats 11 днів тому

      @@nevillebrem nah fck that!
      ;)