Svelte 5 Is Like React, But Better

Поделиться
HTML-код
  • Опубликовано: 24 окт 2024

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

  • @Alexldev
    @Alexldev 2 дня назад +496

    Didn't know Jack Harlow was so into web dev

  • @TheGargalon
    @TheGargalon 2 дня назад +145

    0:20 I almost expected Rich Harris to show up xdd

  • @alnoobus1045
    @alnoobus1045 2 дня назад +106

    Svelte 5 is good and all but.. can we talk about how Ben has adopted Theo's mannerisms??

    • @SamuelJeyasingh
      @SamuelJeyasingh 2 дня назад +1

      😂

    • @romaindurand
      @romaindurand День назад +5

      It's the shirt.

    • @readywhen
      @readywhen День назад +3

      It shows how we're shaped by our environment!

    • @dei8bit
      @dei8bit День назад +1

      is contagious xD , but gives you powers

    • @SirusStarTV
      @SirusStarTV 21 час назад +1

      I hate that it's automatic brain process and you can't just not adopt someone else mannerisms

  • @IronMaidzen
    @IronMaidzen 2 дня назад +64

    Svelte is such a blessing for getting shit done.

  • @avi12
    @avi12 2 дня назад +110

    The issue with non-React/Angular frameworks is that it's much harder to get a job in

    • @999satyam
      @999satyam 2 дня назад +17

      The benefits for a business to switch to svelte aren't just substantial enough to justify investing the time, resources etc to do it. Not to mention the lesser resource pool of svelte developers = costlier & harder to find/replace resources.

    • @roccociccone597
      @roccociccone597 2 дня назад +33

      We just switched away from react at work and boy is everyone in the team happy we don’t have to deal with react anymore.

    • @nymez6968
      @nymez6968 2 дня назад +41

      I‘d rather sleep under a bridge and loot trashcans for a living than working with Angular again.

    • @ridass.7137
      @ridass.7137 2 дня назад +11

      yes and ReAcT hAs biGgEr eCoSisTem

    • @noxlupi1
      @noxlupi1 2 дня назад +1

      Well, if you dont know how to sell it, yes.

  • @yannick7049
    @yannick7049 2 дня назад +25

    Lowkey expected Theo to walk out and just come back with another t-shirt on.

  • @Raynhardx
    @Raynhardx 2 дня назад +17

    Svelte 5 looks awesome for people that appreciate code that is maintainable for a long time. Angular could have been the framework that does reactivity via compiler, they are basically 90% there. They already statically analyze all your code. But somehow they are scared or not willing to do it. I love what svelte is doing here. I'm tempted to rewrite one of my vue apps into svelte 5, just to get a feel for it.

    • @Sammi84
      @Sammi84 День назад +2

      Svelte is what Angular wants to be.

    • @erickmoya1401
      @erickmoya1401 19 часов назад

      Svelte is supreme for enjoying your day to day.

  • @Bhide.Svelte
    @Bhide.Svelte 2 дня назад +25

    Svelte 5 Introduces :
    1. Universal Reactivity
    2. Signals under the hood : state, derived
    3. Nested CSS
    4. Built-in Animations : Fade, Fly, Scale, Draw, Blur
    5. use:actions - Can Integrate any library into svelte
    ---
    we don't need to download tons of dependency - redux, framer motions or any other library to manage this ...we have every feature that developer needs
    honestly svelte 5 made it to write clean code - easy to understand

    • @tizu69
      @tizu69 2 дня назад +1

      nr 4 and 5 have existed since svelte 3, nested css also if you used a preprocessor using lang="..." syntax.

    • @shapelessed
      @shapelessed 2 дня назад

      #1 - Muddies the water and makes the code arguably worse to read, components should be reactive, everything else should just be normal vanilla logic, just try to debug a custom react hook for a second...
      #2 - Great, and and what's the real change over the hood?
      #3 - "npm i -D scss" + "

    • @alexp3620
      @alexp3620 День назад

      all what you had in solidjs for long

  • @artyomnomnom
    @artyomnomnom 2 дня назад +38

    0:45 "The soy React world" - the phrase made my day, ty

  • @demian.succs0
    @demian.succs0 2 дня назад +40

    glad to see ben on this video!

  • @Ava-x9z3n
    @Ava-x9z3n 2 дня назад +26

    svelte is my fav framework

  • @zenpool
    @zenpool 2 дня назад +23

    now I want to see ryan carniato in theo's studio .. please make it happen 😂

  • @PhilipAlexanderHassialis
    @PhilipAlexanderHassialis 2 дня назад +28

    Theo, if you are held in Rich's basement and are forced to say good things about something other than React, blink twice.

    • @erickmoya1401
      @erickmoya1401 19 часов назад

      Rich doesnt need force, he is the Web Jesus, he preaches and people come.

  • @JohnSmith-op7ls
    @JohnSmith-op7ls 2 дня назад +40

    Watching the web front end community reinvent the wheel every 6 years just to eventually end up with what they already had, declaring it too complex, then starting on the next mission to reinvent the wheel… always funny.

    • @hiddenLadder
      @hiddenLadder 2 дня назад +2

      based

    • @Vulume
      @Vulume День назад +3

      This has been going on since before the web. UI is hard. It's a bigger mess on desktop thb.

    • @JohnSmith-op7ls
      @JohnSmith-op7ls День назад +2

      @@Vulume Not to this degree or this pace. I haven’t seen the same churn on desktop, game, or even mobile UI. Web tech sucks but rehashing the same frameworks and libraries over and over with new names and syntax differences doesn’t make it better.
      The root of the problem lies with the slow and inept W3C. Has since they formed.

    • @Vulume
      @Vulume День назад

      @@JohnSmith-op7ls Very few people are writing desktop UIs, and even then web UI frameworks have come to the desktop. The big old ones are stuck and there are dozens of wrappers with their own paradigms that are often language specific. The churn is funny but great it's not for nothing, and if you account for the number of users it's not any worse than in desktop times.

    • @JohnSmith-op7ls
      @JohnSmith-op7ls День назад +3

      @@Vulume It’s far worse than desktop, web is still struggling to provide what desktop apps were doing decades ago. Doesn’t matter how common desktop app dev is now, totally besides the point. Replace it with native mobile if you want and it still holds.
      Point is, web front end is held back by the incompetent W3C and people waste their time and energy on a treadmill trying to rehash more ways to do what desktop and native mobile apps have been doing for ages with far less hassle.
      HTML was never meant to do what it’s asked to, CSS has always been a hack to get it there, JS is awful, the APIs lag decades behind where they should be. I mean, HTTP didn’t even have a PUT verb until really late in the game. Imagine going two decades before the people making standards realized updates are a thing, and also they should be called PUT because being unintuitive is fun or something.

  • @sbmb9613
    @sbmb9613 2 дня назад +7

    Music to my years! Yes Svelte 5 is better. Better than nextJS, switch today, thank me later.

  • @Nekroido
    @Nekroido 2 дня назад +7

    Ironically, $: was the reason I never adopted Svelte.

    • @dei8bit
      @dei8bit День назад

      You missed it bro!

  • @moon_bandage
    @moon_bandage 2 дня назад +5

    This looks fantastic, I wasn't sold initially but the upsides over the previous syntax are clear. Single reactivity system that is opt-in, no weird templating syntax for dealing with event handlers, extremely straighforward passing of props.
    Somehow this just seems to hit the initial design philosophy of svelte even more than its previous versions, this looks uncomplicated with no magic (even though under the hood there is clearly still magic).
    Some minor things I don't like have been brought up by Ben. I believe helpers for preventDefault, once, event bubbling etc should be built in, these are just too common so every project is going to define these pretty much globally right off the bat.
    Snippets I love the idea of, and I'm happy they added it, coming from Vue it had always been annoying to me that I need to make micro components for a component, even though that micro component is only used by that one component.
    But this implementation of snippets seems fairly limited, I hope they expand upon it.
    Thanks for the rundown Ben!

  • @michamaciejewski8895
    @michamaciejewski8895 День назад +8

    New svelte looks awesome, but when I look at this, on every new feature I had on my mind only one thing - vue had this ages ago… but for no reason vue don’t have as much hype as it deserve

    • @dbohea
      @dbohea День назад +1

      This, this, a million times this.

    • @LazyGod840
      @LazyGod840 День назад

      Yes! I'm glad I'm not the only one.

    • @TheSaganic0
      @TheSaganic0 15 часов назад

      It is literally Vue3 composition API

  • @k33lil
    @k33lil 2 часа назад +1

    i've never seen such an upgrade run this easily and smoothly!

  • @givensuman
    @givensuman День назад +1

    looks really good, I think Rich Harris' blog post captured a lot of what I found icky about Svelte and honestly can't think of a bad thing mentioned in this video. Definitely gonna spin up a Svelte 5 app soon

  • @thatonefoxxy
    @thatonefoxxy 2 дня назад +13

    Svelte is awesome, i love it so much!

  • @mlgpro6194
    @mlgpro6194 2 дня назад +2

    I used to use Svelte because it allowed me to ship soo much faster, but with so many new frameworks like radix-ui and framer-motion the React side of the ecosystem is soo much stronger...

  • @thepetesmith
    @thepetesmith День назад +2

    I love Theos faces on the thumbnails, it looks like he just sat on a bag of grapes.

  • @davidrempel433
    @davidrempel433 День назад +2

    I feel like all the people hating on svelte 5, don't understand what an improvement this really is. Just take a moment and try to understand how signals work, and you will be blown away by its simplicity. Not like react at all.

  • @TheOllieJT
    @TheOllieJT День назад

    Love this! found ben through the algorithm when he made the video about switching stacks. I didn't know he did Theo's thumbnails!

  • @killerdroid99
    @killerdroid99 2 дня назад +2

    Runes and snippets are actually better that previous suntax

  • @Loui3Hunna
    @Loui3Hunna 2 дня назад +2

    Svelte is a blessing to web dev

  • @everythingisfine9988
    @everythingisfine9988 День назад +1

    Tanstack Start + Query with Svelte 🤤

  • @avi12
    @avi12 2 дня назад +13

    17:03 I don't like how it feels like Angular

  • @Dylan_thebrand_slayer_Mulveiny
    @Dylan_thebrand_slayer_Mulveiny 2 дня назад +1

    I think the best take-away from this is no migration pain. Being able to jump into the newest major release is awesome. It's something that React fails horribly at. Migrating from VUE 2 to VUE 3 was pretty painless and continues to be so through 3.x. I think this is a pretty important metric that some frameworks seem to disregard. It sucks for developers to be version locked because of breaking changes due to a lack of foresight and consideration for backwards compatibility by the framework authors. Again something React and Angular are very guilty of.

  • @notnotjake
    @notnotjake День назад +1

    Wow the sv cli is really cool especially how it integrates auth, although Lucia is being deprecated :(

  • @dei8bit
    @dei8bit День назад

    By god SVELTE 5 is a marvel, I love it so much, really since I tried svelte, I knew that this was my framework, and although I am relatively new to svelte, I got to witness its update.
    I think I've used it enough to say that the only thing that broke my heart are the event modifiers, please bring them back hahaha they were a precious jewel, they were always welcome and they speed up the work a lot.

  • @sorenschultz1144
    @sorenschultz1144 2 дня назад +6

    I svelte this in my soul

  • @MyriadColorsCM
    @MyriadColorsCM 2 дня назад +3

    An endorsement for anything not related to the React/NextJS ecosystem coming from Theo says a lot.
    Edit: Wait, it's not him! lmao

  • @Cruzylife
    @Cruzylife День назад

    Epic collab! I remember finding Ben when he did a lot of Golang videos

  • @chm10323
    @chm10323 2 дня назад +3

    hmm, i think the event dispatcher should be good one…

    • @BhideSvelte
      @BhideSvelte 2 дня назад

      Svelte 5 solves those issues via : host feature and honeslty we can pass events form child to parent comp via props

  • @officialcreatisoft
    @officialcreatisoft 22 часа назад +1

    I stopped when he said "He creates Theo's thumbnails" I can't take this seriously.

  • @spacenerd28
    @spacenerd28 2 дня назад

    I misread the title and got excited. I thought it said "Svelte 5 is like React, But Butter"

  • @zb2747
    @zb2747 21 час назад

    I’m rooting for Svelte and Vue. These two are the best IMO

  • @voidmind
    @voidmind 2 дня назад +1

    Lucia, one of the packages it proposes to install, is no longer maintained as of 3 days ago

    • @C4CH3S
      @C4CH3S 2 дня назад +2

      Been acknowledged, they are going to switch it out soon.

    • @matthewcole4521
      @matthewcole4521 День назад +2

      They are aware. Lucia the package is deprecated. Lucia the concept isn't. Lucia is now a guide for how to do auth, and that's what the svelte team added : following that guide to set up auth from the cli..

  • @cobrasys
    @cobrasys 9 часов назад

    Man, I'm going to miss event modifiers so much. I like basically everything else I saw (and I was honestly very skeptical about runes), but the event changes I am really bummed about.

  • @Manas-co8wl
    @Manas-co8wl 2 дня назад

    Glad to hear it’s out and about. Sounds like a great excuse to get into it again

  • @macerdough
    @macerdough День назад +2

    It seems like Svelte is trying to appeal to a certain demographic of web developers. I dont know who asked for these changes but good for them tho !

  • @LiveErrors
    @LiveErrors 2 дня назад +1

    Surely Theo is aware that title is very scary to svelte people

  • @SidTheITGuy
    @SidTheITGuy 2 дня назад +14

    6 minutes ago is crazy

  • @WillDelish
    @WillDelish День назад

    I told my 2y old, Ben, that this guy here is also named Ben. Now everytime he sees Ben, he says he’ll save him from work and bring him home 🤣

  • @danielgilleland8611
    @danielgilleland8611 2 дня назад +1

    Wow! Sharing the mic! Kudos!!

  • @nullzeon
    @nullzeon 2 дня назад

    wow this might be my favorite vid on the channel

  • @Darkphil10
    @Darkphil10 День назад

    Ben's way of articulation was very good. Very similar to Theo's.

  • @atmn_pawel
    @atmn_pawel 2 дня назад +3

    that got me suprised ngl

  • @thirtykey
    @thirtykey 19 часов назад

    looks really nice. how does sveltekit functionality compare to nextjs? are there any glaring reasons to stay with next, other than the obvious smaller community and hiring pool?

  • @denespapp1963
    @denespapp1963 День назад +2

    Svelte is pretty much the same as Angular, but less complex and less powerful.
    Some basic syntax comparison:
    Svelte:
    const someState = $state(0)
    Angular:
    const someState = signal(0)
    Svelte:
    {#if source}
    {/if}
    Angular:
    @if (source) {
    }
    Svelte:
    action()}>
    Angular:
    ---
    Oh, and btw, Vue is almost the same as Angular

  • @grimm_gen
    @grimm_gen День назад

    being able to run svelte 5 with Deno 2 is awsome, no prettier, eslint or vitest. Less config, more building

  • @javierruelas1996
    @javierruelas1996 2 дня назад +5

    Svelte 5 is finally here?!

  • @zenpool
    @zenpool 2 дня назад +4

    soy theo vs chad ben 😆

  • @AVidhanR
    @AVidhanR День назад

    17:19 that's really good.

  • @AndrewErwin73
    @AndrewErwin73 13 часов назад

    So Svelt is becoming old React, while React is becoming old Svelt... I miss programming.

  • @tomich20
    @tomich20 День назад

    Svelte 5 was the one that pushed me into nextjs. Although the svelte cli looks amazing... Can we have the same in next now?

  • @TheAlexLichter
    @TheAlexLichter День назад +1

    Can we do the same but for Vue/Nuxt? 😲🔥

  • @Metruzanca
    @Metruzanca День назад

    No fucking way. Ben Davis? WAIT YOU MAKE HIS THUMBNAILS?

  • @lu2000luk
    @lu2000luk День назад +2

    I loved the event listeners how they where, f em

  • @JohnVandivier
    @JohnVandivier 20 часов назад

    thanks for the download, great stuff

  • @aminbusiness3139
    @aminbusiness3139 День назад +1

    Zuck is the copycat GOAT
    His team will take their good ideas and bring it over to React , as he should 😊

  • @edwardspresume
    @edwardspresume 2 дня назад +1

    I haven't use the bun package manager yet. What's the advantage over pnpm?

  • @danikvitek6845
    @danikvitek6845 2 дня назад +1

    "TODO LINK TO TUTORIAL" xD

  • @disismoyoutube
    @disismoyoutube День назад

    “Svelte 5 in like React”. This is the scariest thing i’ve heard since I fell in love with Svelte 😨 Please don’t tell me it has “useEffect” or something similar!!

  • @FusionHyperion
    @FusionHyperion День назад +2

    Still more into Vue than Svelte but looks cool

  • @TheSaganic0
    @TheSaganic0 15 часов назад

    Svelte runes are literally Vue3 composition..

  • @Kampouse
    @Kampouse 2 дня назад +2

    How is that like react? 😅 its closer to vue than anything

  • @f1945
    @f1945 День назад

    I don't like the idea of having that many dollar symbols spread all around the code. That looks like jQuery. I would prefer something like:
    let reactive count = 1;
    const derivative double = count * 2;
    And something similar to $: for effect.

  • @potatosheep
    @potatosheep 9 часов назад

    Svelte 5 Is Like Vue 3, But Better. I fixed the title

  • @rasibn
    @rasibn 2 дня назад +2

    Hey, Ben here is awesome!

  • @phoneywheeze
    @phoneywheeze День назад

    9:40 how would it work when lucia is being deprecated

  • @toothless.tarantula
    @toothless.tarantula День назад

    Cross-over episode!!!

  • @lucasgiunta8874
    @lucasgiunta8874 2 дня назад

    what about sveltekit which use svelte 4 with the page store or all the export let data: LayoutServerData, etc etc ? It is part of the migration or it will be handle later by another version of sveltekit which will migrate all the core syntax with svelte 5 ?

  • @Akroker1
    @Akroker1 2 дня назад +6

    So YOURE the guy that is putting together the clickbait fake tweets? Smh

    • @t3dotgg
      @t3dotgg  2 дня назад +10

      little do they know, I make almost all of those myself...

    • @rasibn
      @rasibn 2 дня назад

      😂

  • @eminentcoder
    @eminentcoder День назад

    Awkward that they put lucia in the sv cli, it just got deprecated :)

  • @spartanghost_17
    @spartanghost_17 7 часов назад

    What is Jack Harlow doing here?

  • @developmentlearning7083
    @developmentlearning7083 День назад

    bringing Jack Harlow to explain svelte is a bit excessive but ok

  • @LucHebert13
    @LucHebert13 День назад

    Good job dude! I'll checkout your channel :)

  • @yokowasis
    @yokowasis 2 дня назад +1

    But I move from react to svelte because svelte is not like react.

  • @jerondiovis6128
    @jerondiovis6128 2 дня назад +1

    Making overviews 101: The amount of used words "amazing", "exciting", "stunning", "phantastic", "really awesome" etc is inversely proportional to usefulness of the video.
    Can we please NOT get this guy talking again here?

  • @kristianlavigne8270
    @kristianlavigne8270 2 дня назад +1

    The big issue is upgrading everything to work seamlessly with Svelte 5. Feels like when React went from classes to reactive functions and hooks 😅

    • @matthewcole4521
      @matthewcole4521 День назад +1

      Svelte can do a fair amount of the heavy lifting for you with it's migration package

  • @ИванРагозин-я8я
    @ИванРагозин-я8я 2 дня назад

    collaboration

  • @par6912
    @par6912 День назад

    Seems more like vue but a bit cleaner

  • @TheWildair
    @TheWildair День назад

    "soy react world", wonderful burn sir!

  • @_y7ya
    @_y7ya 2 дня назад +2

    The snippet and render syntax is so ugly. I prefer anything that renders to have an element tag syntax .

  • @kajoma1782
    @kajoma1782 2 дня назад

    The dawn of svelte???

  • @ND6K
    @ND6K 2 дня назад

    It’s upload thing going to support svelte 5 now?😅

    • @everyhandletaken
      @everyhandletaken День назад

      He might rewrite in Svelte 5 & then tell us why Svelte 5 sux lol

  • @rinart73
    @rinart73 2 дня назад

    Wait. SV integrated Lucia into setup? But I thought that Lucia is dead/discontinued?

    • @matthewcole4521
      @matthewcole4521 День назад +1

      They are aware. Lucia the package is deprecated. Lucia the concept isn't. Lucia is now a guide for how to do auth, and that's what the svelte team added : following that guide to set up auth from the cli..

    • @rinart73
      @rinart73 День назад

      @@matthewcole4521 Got it. Thanks for the explanation :)

  • @i.reutenko
    @i.reutenko День назад

    This video was sponsored by Theo🙃

  • @eldarshamukhamedov4521
    @eldarshamukhamedov4521 День назад

    Svelte seems great, but no JSX is a deal breaker

    • @upsxace
      @upsxace День назад

      Ikr. People complain of the JSX syntax, but that {# /} thing is much worse to me. Only thing i dislike about svelte, but im gonna still give it a go. I was waiting for svelte 5 to try it

  • @koteelok2014
    @koteelok2014 2 дня назад

    Show Ben more

  • @sinanyilmaz9887
    @sinanyilmaz9887 2 дня назад +1

    I am so so tired of the 15+ frameworks / libraries in the JavaScript ecosystem.

  • @luizgrocco
    @luizgrocco День назад

    Soy React world earned an instant like from me 🤣

  • @erickmoya1401
    @erickmoya1401 19 часов назад

    Always bet on Rich Harris.

  • @999satyam
    @999satyam 2 дня назад +2

    00:54 wtf is that font choice

  • @jefferyosei101
    @jefferyosei101 2 дня назад

    I love this Theo, great watch ❤😅

  • @s1v7
    @s1v7 Час назад

    looks like a good reason to stick with react

  • @jay-j6l
    @jay-j6l 2 дня назад

    I'll stick to Angular