React 19 STABLE - I Can't Believe They Changed This

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

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

  • @jonesaa2746
    @jonesaa2746 3 дня назад +7

    Very professional, I like this guy more than other tubers

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

    I don't really see the point of useActionState,
    I mean what am I benefiting from using action instead the onsubmit event?
    Weren't we moving to apis so that we could have backend client agnostic?
    Aren't we just going back to old way of doing it with PHP?
    I don't know what I am not understanding and would love someone to explain and convince me that this is worth it

  • @dmtr_ptrv
    @dmtr_ptrv 3 дня назад +5

    Thanks for good video, but to be honest, it seems to me that React took a wrong turn:
    These new features and hooks solve problems that essentially do not exist in modern development
    It also look very inappropriate from the point of view of HTML elements: it’s strange that I’m passing some function to the action field that has nothing to do with how the action field of a form element is processed in HTML

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd 4 дня назад +4

    Thank you for the video

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

    Head over Svelte, it has server and client explicitly, which is easier to understand than a React

    • @Lapatate-s1l
      @Lapatate-s1l 2 дня назад

      @@tuannguyenanh7466 yes svelte is very cool , very easy to understand and very flexible . But doesn’t pay the bills sadly . That’s why most people stick with react and next js ..

  • @RobinGiel
    @RobinGiel 3 дня назад +1

    Thanks for all the info and content 🙂

  • @meka4996
    @meka4996 3 дня назад +1

    Very nice. Thanks

  • @RyanGause-lj8sn
    @RyanGause-lj8sn 3 дня назад +1

    Love your content.

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

    great content!

  • @system2072
    @system2072 3 дня назад +1

    what if we need both web and a mobile app with an api wont this approach just cause overhead, i mean how can we approach if we want to serve both web and mobile app???

  • @Lapatate-s1l
    @Lapatate-s1l 2 дня назад +1

    Thanks . Helpful videos as always . Do you plain any long video of building full project with crud using pgsql prisma and next 15 or react 19 ? That would be huge

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

    Just to understand, now that we can use server side actions in React without next.js, we need to host react on any server, i.e bundled with vite? No more vercel? Or it seems like you are showing this example in next.js and server-side actions won't work without supporting framework like next.js

  • @bopon4090
    @bopon4090 4 дня назад +7

    So whats the difference between usestate and useoptimistic??

    • @afonsopimenta
      @afonsopimenta 4 дня назад +13

      Hi, useState is meant to store some state in the client.
      useOptimistic is meant to store some state that is synced with some value on your server, and updates even before your server gives an answer.
      For example, imagine you have a social media app where you have a like button with a likes counter. You can have you likes be handled with the useOptimistic hook, and when you click it, it will instantly increment the like and send the POST request to the server. After some time, when the server responds, if it responds with an OK status, nothing will happen, but if it responds with an error, the useOptimistic hook will automatically roll back the like count to the value that it had before you clicked the button.
      Hope this helped :)

    • @huzaifaqayyum786
      @huzaifaqayyum786 4 дня назад

      ​@@afonsopimenta appreciated

    • @OnlyJavascript
      @OnlyJavascript 3 дня назад

      @@afonsopimenta what's the use?

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

      not much, it rolls back automatically to previous value on error, with useState u would have to handle it manually

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

    i tried to use form Action. Not sure why the server action is a get call.

  • @carlosricardoziegler2650
    @carlosricardoziegler2650 3 дня назад

    Nice video, but think React Compile is not enabled because still under construction. You need enable it in NextJS

  • @DubinArtur
    @DubinArtur 4 дня назад

    Кайф, огонь. Обязательно надо попробовать. Я так давно хотел чего-нибудь нового, и вот оно пришло

  • @pairofrooks
    @pairofrooks 4 дня назад +19

    tip: if you're trying to show how a bit of js code works, remove the multiline classNames which dominate the screen

    • @hooooman.
      @hooooman. 3 дня назад +1

      Yeah, I think there is a vs code extension exactly for this purpose, which helps to hide the classes inside className with a three dot.

    • @its4zahoor
      @its4zahoor 3 дня назад

      Name of extension?

    • @hooooman.
      @hooooman. 3 дня назад

      @@its4zahoor Tailwind Fold

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

      @@hooooman.amazing thank you

  • @waleedsharif618
    @waleedsharif618 3 дня назад +1

    I wonder why they did not talk about React Compiler when React 19 was released few days ago

  • @regilearn2138
    @regilearn2138 3 дня назад

    need next js 15 full coures

  • @nguyenmanhcuong9434
    @nguyenmanhcuong9434 3 дня назад

    Hi Wesley. Does "NEW React & Next.js" course cover Next.js 15?

  • @shawnmclean7707
    @shawnmclean7707 4 дня назад +1

    What if there is a network or server issue where the action was not even hit?
    For example, what if the host throws something like a 413 status for body size too much or a rate limit? How does the client get this status code?

    • @seppdaniel
      @seppdaniel 4 дня назад +1

      You handle it the same way you would handle a fetch call.

  • @SalmanKhan-yc2ll
    @SalmanKhan-yc2ll 22 часа назад

    Thank God for no more forwardRef

  • @cunningham.s_law
    @cunningham.s_law 4 дня назад +2

    so create-react-app now will come with a server?

    • @User948Z7Z-w7n
      @User948Z7Z-w7n 4 дня назад +1

      Server means your terminal lol. Unless you deploy to some services or have your own server

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

      Hi, it does not.
      Even though react has all of this server features built in now, they are meant to be used by Framework and Library authors, your react app will not have this feautures by default.
      I might be wrong, but I think you can have these features by serving your react app on an Express server. Don't quote me on that though 'cause I haven't done research on the topic.
      I hope this helps :)

    • @its4zahoor
      @its4zahoor 3 дня назад

      create-react-app is deprecated and not maintained. React now recommends using a framework of your choice

    • @User948Z7Z-w7n
      @User948Z7Z-w7n 2 дня назад

      @@afonsopimenta You can use server component on basic CRA app. Framework is just for convenience. They should never be the only way you can do something

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

      @@User948Z7Z-w7n Are you sure? Can you show me a repository where that is that case?
      I believe I read somewhere that you could not, but I might be wrong so, if you could show me one that would be great :)
      Always up for some learning

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

    So what changed since the release candidate?

  • @squarerootof2
    @squarerootof2 4 дня назад +7

    OMG! OMG!!! OMFG!!! I can't believe this! I refuse to believe it. It is INCREDIBLE!!! Why did they have to change this??? Why???Oh ,...no nooooo!!!

  • @tangsi721
    @tangsi721 22 часа назад

    does it mean we can ditch the ridiculous nextjs forever from now? 😂

  • @gttrackpro9433
    @gttrackpro9433 3 дня назад +1

    react Library slowly become react framework

  • @mahdiuser100p8
    @mahdiuser100p8 3 дня назад

    imagine you drop 19 versions and still garbage takes some skill

  • @henriquebarros8303
    @henriquebarros8303 3 дня назад

    It's incredible that guys think that React or Vercel "created" a thing that is already built in on HTML + Ajax

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

    Use not for accessing context. Use is for resolving promises.

  • @mariokrstevski8836
    @mariokrstevski8836 4 дня назад

    NEXT15 - If you want the react compiler you would have to sacrafice the existing rust compiler in nextjs, unless your app is really slow and needs it, don't do it as of now.

  • @EnesKab
    @EnesKab 3 дня назад

    Please slow down a bit. So hard to follow. I can give few more mins to watch the video.

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

      0.75x

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

      @@its4zahoor My comment is for him, not you.