13 Svelte Concepts you Need to Know

Sdílet
Vložit
  • čas přidán 8. 09. 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...

Komentáře • 51

  • @awesome-coding
    @awesome-coding  Před 2 měsíci +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 Před 2 měsíci

      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  Před 2 měsíci

      @@nevsy_1573 Thank you!

  • @owhut2956
    @owhut2956 Před 2 měsíci +12

    damn, that like the exact same syntax of vue

  • @IainSimmons
    @IainSimmons Před 2 měsíci +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.

    • @heyjitendra
      @heyjitendra Před 2 měsíci

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

    • @fallingseasy
      @fallingseasy Před 2 měsíci

      @@heyjitendra 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 Před 2 měsíci

      @@heyjitendra 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 Před 2 měsíci

      @@heyjitendra 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 Před 2 měsíci

      @@heyjitendra 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

  • @heyjitendra
    @heyjitendra Před 2 měsíci +3

    As usual Awesome video!

  • @wlockuz4467
    @wlockuz4467 Před 2 měsíci +3

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

  • @madmaxdev
    @madmaxdev Před 2 měsíci +2

    svelte is optimized for vibes. -Rich Harris

  • @bryamalfaro
    @bryamalfaro Před 2 měsíci

    Good video man, thanks for share us

  • @QueeeeenZ
    @QueeeeenZ Před 2 měsíci +4

    please do a video on Nuxt (Vue)

  • @forno_nicolas
    @forno_nicolas Před 2 měsíci +1

    Svelte 5 💯💯

  • @Jrd-ug5cm
    @Jrd-ug5cm Před 2 měsíci +1

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

  • @ryo_5748
    @ryo_5748 Před 2 měsíci

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

  • @dqrk0
    @dqrk0 Před 2 měsíci +16

    every framework is vue now

    • @awesome-coding
      @awesome-coding  Před 2 měsíci

      😅

    • @vaisakhkm783
      @vaisakhkm783 Před 2 měsíci +2

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

    • @SilvestreVivo
      @SilvestreVivo Před 2 měsíci +3

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

    • @vaisakhkm783
      @vaisakhkm783 Před 2 měsíci

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

  • @reubenjunior512
    @reubenjunior512 Před 2 měsíci

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

  • @ChichaGad
    @ChichaGad Před 2 měsíci

    Solid JS is the future

    • @awesome-coding
      @awesome-coding  Před 2 měsíci

      you might be right.

    • @ChichaGad
      @ChichaGad Před 2 měsíci

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

  • @mdkawsarislamyeasin4040
    @mdkawsarislamyeasin4040 Před 2 měsíci

    How do you edit this video?
    Animation on your code

  • @lazyh0rse
    @lazyh0rse Před 2 měsíci +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];

    •  Před 2 měsíci +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 Před 2 měsíci +1

      Not in Svelte 5! It just works without reassignment.

  • @mbahmusalto
    @mbahmusalto Před 2 měsíci +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 Před 2 měsíci +1

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

  • @ashleyfreebush
    @ashleyfreebush Před 2 měsíci

    Yes js course? tell us more???

  • @ameypendokhare3832
    @ameypendokhare3832 Před 2 měsíci

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

  • @davifreire833
    @davifreire833 Před 2 měsíci

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

  • @saeidex
    @saeidex Před 2 měsíci

    reactive php 😅

  • @marceloguzman646
    @marceloguzman646 Před 2 měsíci

    so... vue

  • @vaisakhkm783
    @vaisakhkm783 Před 2 měsíci +16

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