13 Svelte Concepts you Need to Know

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • Svelte 5 - A hands on pragmatic crash course.
    💬 Topics:
    - What is Svelte;
    - Single file components;
    - Svelte Compiler;
    - Runes, Signals, effects & derived state;
    - Templates & rendering;
    - Data binding & event listeners
    🎖The Yes JS Course - www.yes-js.com/
    🥇 Become a Member - / @awesome-coding
    ✉️ Join the Newsletter - newsletter.awe...
    📖 Blog Article - www.awesome.cl...

Комментарии • 51

  • @awesome-coding
    @awesome-coding  3 месяца назад +10

    Check out my upcoming "I'm too old for this sh*t but I have to finally learn it" frontend course - yes-js.com/
    I know... I'm not good at naming things 🤦‍♂️

    • @nevsy_1573
      @nevsy_1573 3 месяца назад

      Website looks great on desktop but be careful about responsiveness. On my phone it doesn't look to great (input + button not centered, background not covering whole screen). Theyre simple fixes, but theyre definitely worth it :) Loved the video though, very inscructive! Honestly can't wait for this type of full course :)

    • @awesome-coding
      @awesome-coding  3 месяца назад

      @@nevsy_1573 Thank you!

  • @owhut2956
    @owhut2956 3 месяца назад +12

    damn, that like the exact same syntax of vue

  • @nanashi7726
    @nanashi7726 22 дня назад +1

    The way to pass type to $props is wrong
    Also onMount should be replaced with $effect

  • @QueeeeenZ
    @QueeeeenZ 3 месяца назад +4

    please do a video on Nuxt (Vue)

  • @davifreire833
    @davifreire833 3 месяца назад

    Svelte is the only good frontend framework. ALL frameworks turns simples things into absolute unnecessary chaos.

  • @dqrk0
    @dqrk0 3 месяца назад +16

    every framework is vue now

    • @awesome-coding
      @awesome-coding  3 месяца назад

      😅

    • @vaisakh_km
      @vaisakh_km 3 месяца назад +2

      XD and vue is the middle child that does all the work but no one takes about...

    • @SilvestreVivo
      @SilvestreVivo 3 месяца назад +3

      Let's say that Vue3 learned from Svelte3, and now Svelte learned from Solid. Svelte is still the winner.

    • @vaisakh_km
      @vaisakh_km 3 месяца назад

      @@SilvestreVivo in past 1y, for almost all project i opted for svelte... such a awesome framework

  • @madmaxdev
    @madmaxdev 3 месяца назад +2

    svelte is optimized for vibes. -Rich Harris

  • @wlockuz4467
    @wlockuz4467 3 месяца назад +3

    Your animations are so clean, what software do you use for editing?

  • @Jrd-ug5cm
    @Jrd-ug5cm 3 месяца назад +1

    The only thing I hate about Svelte is that it's so good I don't want to use anything else!

  • @jitxhere
    @jitxhere 3 месяца назад +3

    As usual Awesome video!

  • @ryo_5748
    @ryo_5748 3 месяца назад

    Props type is written as "let { ... }: Props = $props()", not the generic type of $props().

  • @mbahmusalto
    @mbahmusalto 3 месяца назад +2

    Svelte 5 is looking more like React. I prefer SolidJS if the thing look like React, otherwise Svelte 4 is my cup of coffee

    • @SilvestreVivo
      @SilvestreVivo 3 месяца назад +1

      What???? I think React19 is looking more Svelte and Vue, not in the way around.

  • @bryamalfaro
    @bryamalfaro 2 месяца назад

    Good video man, thanks for share us

  • @ameypendokhare3832
    @ameypendokhare3832 3 месяца назад

    you are the official "Deno" channel's voice aren't you 🤨 ?

  • @marceloguzman646
    @marceloguzman646 3 месяца назад

    so... vue

  • @ashleyfreebush
    @ashleyfreebush 3 месяца назад

    Yes js course? tell us more???

  • @reubenjunior512
    @reubenjunior512 3 месяца назад

    which software did you use to showcase the code like that?

    • @awesome-coding
      @awesome-coding  3 месяца назад +2

      Premiere Pro and a lot of work 😅

  • @mdkawsarislamyeasin4040
    @mdkawsarislamyeasin4040 3 месяца назад

    How do you edit this video?
    Animation on your code

  • @saeidex
    @saeidex 3 месяца назад

    reactive php 😅

  • @ChichaGad
    @ChichaGad 3 месяца назад

    Solid JS is the future

    • @awesome-coding
      @awesome-coding  3 месяца назад

      you might be right.

    • @ChichaGad
      @ChichaGad 3 месяца назад

      ​@@awesome-coding Btw I love your videos
      Keep up the good work

  • @IainSimmons
    @IainSimmons 3 месяца назад +3

    Really great summary of Svelte 5 features. I've been recently playing with it while building a Tauri app.
    It's been surprisingly easy to get going, and when I have to look up something in the new Svelte 5 preview docs, it's usually what I would expect, or just very close to regular JS syntax.
    Pretty refreshing. I might even like it a little more than Solid, but I haven't had to make lots of components and compose them together yet, so we'll see if that changes as the app becomes more complex.

    • @jitxhere
      @jitxhere 3 месяца назад

      Hey I have a question like how far can we go with only JS in tauri? Like is rust necessary??

    • @fallingseasy
      @fallingseasy 3 месяца назад

      @@jitxhere most Operating System APIs are wrapped with JavaScript. If you don't need to do custom system stuff, you will probably be fine with JS only

    • @IainSimmons
      @IainSimmons 3 месяца назад

      @@jitxhere I'd say pretty far, there's a ton of JS APIs in Tauri for a lot of what you'd need. I'm sure there's things that would arguably be better in plain Rust code, but I'm sure you could find a solution.

    • @DaPaBe1999
      @DaPaBe1999 3 месяца назад

      @@jitxhere That is not the correct question, first you need to think of why is it a necessity in the first place, as well why Electron exists.
      Rust is only the backend in a Tauri App if you choose to.

    • @codingwithjamal
      @codingwithjamal 3 месяца назад

      @@jitxhere you dont have to use much rust code at all. You can use normal js todo almost anything on the file system it just might not preform as good as in rust. However you can use rust only for the desktop window if you want

  • @lazyh0rse
    @lazyh0rse 3 месяца назад +1

    one thing to note, is that mutating arrays don't nessesary cause the ui to reflect the changes. you have to assign a new array. Like this
    array = array;
    or
    array = [...array];

    •  3 месяца назад +8

      Not anymore, in Svelte 5 that is no longer the case, however if you are using svelte 4 or bellow, then yes, you need to assign the value.

    • @didiercatz
      @didiercatz 3 месяца назад +1

      Not in Svelte 5! It just works without reassignment.

  • @vaisakh_km
    @vaisakh_km 3 месяца назад +16

    🥲 it pains me that you haven't shown the result