Exploring React 19 Features - use() Hook, Actions & More

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

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

  • @codelure
    @codelure 9 месяцев назад +4

    I think it covered all the stuffs, i think this the only video on youtube which have great content, other videos just making fool without understanding react19.
    Thanks brad❤

  • @brianbeal9206
    @brianbeal9206 8 месяцев назад +2

    I'm ready for Traversy radio - I could listen to this dude all day

  • @philippearras8154
    @philippearras8154 10 месяцев назад +11

    Thank you Brad. All the work you do !

  • @psychodelic42
    @psychodelic42 9 месяцев назад +1

    you were the pilar of staring my journay of a web dev. Some time now I didn't came to your channel but I'm happy to see you are back in the game!! Lucking sharp mate, hope you are doing well !!!

  • @eleah2665
    @eleah2665 10 месяцев назад +1

    Brad is still the king. Over 2 million subscribers. Thanks.

  • @webdevluc
    @webdevluc 10 месяцев назад +6

    Great video Brad. Thanks for making and sharing it

  • @munna5553
    @munna5553 10 месяцев назад +3

    You're are ahead of time😊😊

  • @AlexanderBelov-y8o
    @AlexanderBelov-y8o 10 месяцев назад +2

    Woah man! You are the first one on RUclips to make a tutorial on React 19! You are the GOAT.

  • @ceralguy85
    @ceralguy85 10 месяцев назад +1

    Great video Brad, thank you for always support the tech community by sharing this great content

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

    This saved me so much time catching up with React 19. Thanks a lot Brad

  • @acidrifrancis15
    @acidrifrancis15 9 месяцев назад +1

    You guy are doing tremendous work. i love the way each and every project you drop is giving us insight.

  • @r-i-ch
    @r-i-ch 10 месяцев назад +2

    Thanks for showing these all instead of the cursory review.

  • @bogdanmarian3786
    @bogdanmarian3786 10 месяцев назад +1

    Brad is the man! Thank you for your efforts and continuous learning materials!

  • @SaifulIslam-ql6eb
    @SaifulIslam-ql6eb 9 месяцев назад +1

    I'm excited about react compiler.

  • @abhaykumar9806
    @abhaykumar9806 10 месяцев назад +1

    At 33:20, why do you have a id in a input type hidden, when it can be passed from the prop value into the callback addToCart similar to title? I totally understand that you are trying to create an example to use formData inside a child component, but here it looks like an overkill.

  • @haciendadad
    @haciendadad 9 месяцев назад

    Great job on this video! Thanks Brad!!

  • @CodeMouse_222
    @CodeMouse_222 Месяц назад

    Thank you so much for such a clear inresting video! It helps a lot 🤝

  • @engsiyad
    @engsiyad 10 месяцев назад +1

    I see a lot of Next js staff in the update. Thanks for the update brad.

    • @matagaralph
      @matagaralph 4 месяца назад

      Yeah coz most of the React core dev team are now part of the Nextjs development team at Vercel.

  • @XviSi0nplays
    @XviSi0nplays 10 месяцев назад

    eine der besten folgen seit langem

  • @Racine14
    @Racine14 10 месяцев назад +1

    Thank you #travesy for this video.

  • @devjourney8583
    @devjourney8583 9 месяцев назад

    this is great, thank you Brad!

  • @larrytron1992
    @larrytron1992 10 месяцев назад +1

    I'm really looking forward to React 19. It'll be nice to revisit after spending so long with Next JS

  • @ziggy-dev
    @ziggy-dev 10 месяцев назад

    Minor thing, 13:09: Regardless of the use() hook, you wouldn't have to `return await res.json()`. (Unless you're using a try/catch)

  • @yman_kh
    @yman_kh 10 месяцев назад +1

    Great video Brad. Thanks for making and sharing it. Are you planning to update the react course on your website?

  • @abhaykumar9806
    @abhaykumar9806 10 месяцев назад

    Overall, great video. Worth watching. Thanks for sharing!

  • @张宁-v4y
    @张宁-v4y 10 месяцев назад +1

    Thank you video Brad

  • @WanKy182
    @WanKy182 9 месяцев назад

    33:02 it doesn't look good creating hidden input in order to pass id to formData, why we can't just pass it as param?

  • @_Blackwolf_01
    @_Blackwolf_01 10 месяцев назад +2

    Thanks sir i'm currently learning your DSA course and it iz amazing

    • @birsingh5388
      @birsingh5388 10 месяцев назад +1

      He always makes great videos

    • @_Blackwolf_01
      @_Blackwolf_01 10 месяцев назад +1

      @@birsingh5388 like hitesh sir

    • @zaibali254
      @zaibali254 10 месяцев назад +1

      Can you share link of this course

  • @stephenadeoye8370
    @stephenadeoye8370 8 месяцев назад

    Thank you so much for sharing this.

  • @BijanProgrammer
    @BijanProgrammer 10 месяцев назад

    Thank you for this comprehensive video.

  • @Faatihahmed
    @Faatihahmed 10 месяцев назад

    Great video as usual. I hope i will my first dev app

  • @jamcmich
    @jamcmich 7 месяцев назад

    I was reading about this the other day. Apparently using subsequent commas in an array is a method for omitting array indices. In different contexts, this method's omitted values will sometimes be read as undefined.

  • @Salah-YT
    @Salah-YT 10 месяцев назад +1

    thank u so much 🥰👍

  • @lucadifazio2735
    @lucadifazio2735 9 месяцев назад +1

    So what's the difference between form action and form onSubmit?

  • @avneet12284
    @avneet12284 10 месяцев назад

    Nice. I see an example for useTransition in the repo. Would be nice to get a video on it if you get some time.

  • @manishkeer8338
    @manishkeer8338 9 месяцев назад +1

    Thanks for the video, just have one question how we will handle error cases with use(fetch(...)) and suspense (for API calls)

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

      You can warp the Suspense with ErrorBoundary which it's available by npm install react-error-boundary

  • @ahmedchouihi
    @ahmedchouihi 8 месяцев назад

    Thanks Brad for the tutorial , but which course should I have read before this tutorial ? Can you mention one or more of the helpful videos ? Thanks and good luck

  • @Immelstorn
    @Immelstorn 10 месяцев назад +2

    In the first example hook use() triggers 4 times and i don't see a way to fix it. Am i missing something?
    Also to run the code you need to use yarn (npm isn't able to handle conflicts). And manually install experimental versions after it (you will get react/jsx-runtime errors without it)

    • @jayantsharma2669
      @jayantsharma2669 10 месяцев назад

      I haven't tried this, but I have this question what if I only want to fetch the data only once, but on every re-render the use hook will fetch the data

  • @rudolfferenckovacs812
    @rudolfferenckovacs812 10 месяцев назад

    Thank you Brad!

  • @jameskirk5914
    @jameskirk5914 10 месяцев назад

    brad the GOAT

  • @handsoncoding7693
    @handsoncoding7693 10 месяцев назад

    Nice one Brad.

  • @vladoks7965
    @vladoks7965 10 месяцев назад +10

    Are you going to make Laravel course on Udemy?

  • @danielcornejodev
    @danielcornejodev 7 месяцев назад

    Brad, in the useExample 1 and 2, I see that you are no longer using a catch method for error handling. Wouldn't you want to keep that in the fetch data call?

  • @GeraldOlumideBMmagazine
    @GeraldOlumideBMmagazine 6 месяцев назад

    When using “use” and “ Suspense” for the first and second examples of this video, I can see that you were able to display the data and there is a loading state too with the help of Suspense hook, but how do you handle a case when the post can’t be fetched, how do you show error message back ?

  • @martygo
    @martygo 9 месяцев назад

    Awesome 🤩.

  • @abdulsiyadnp
    @abdulsiyadnp 9 месяцев назад

    Wow, this is a Gem.

  • @daljeetsingh5127
    @daljeetsingh5127 9 месяцев назад

    Great video Thanks

  • @skverskk
    @skverskk 10 месяцев назад

    Great new React features. And, great presentation with real example code.

  • @nro337
    @nro337 10 месяцев назад

    great video!!

  • @asifahmed6568
    @asifahmed6568 10 месяцев назад

    Thank you Brad

  • @ceralguy85
    @ceralguy85 10 месяцев назад

    Brad there is an error related with a conflict between react-router-doom and react experimental version. Do you know which version of react-router-dom we need to install ?

  • @brencancer
    @brencancer 9 месяцев назад

    Thanks for the effort sir, will React 19 affect React Native?

  • @JohnReyBaylen
    @JohnReyBaylen 8 месяцев назад

    Note: React.useActionState was previously called ReactDOM.useFormState in the Canary releases, but we’ve renamed it and deprecated useFormState. - From React Doc

  • @alexdin1565
    @alexdin1565 10 месяцев назад

    Thanks for this videos as always best content
    please I have a question can we use Next Js with Django?

  • @alvaro-escalante-naves
    @alvaro-escalante-naves 8 месяцев назад

    How would you call the fetchData from an onclick event using 'use'?

  • @Zeeshan-oi1vj
    @Zeeshan-oi1vj 10 месяцев назад

    Great video, skipping unnecessary part was good

  • @PeterScream
    @PeterScream 8 месяцев назад

    nothing wrong with the longer videos mate

  • @harsimothukuri155
    @harsimothukuri155 10 месяцев назад

    Brad u r my motivation

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

    Nice

  • @jesse-c5y
    @jesse-c5y 5 месяцев назад

    i think tanstack useQuery is still superior for fetching data but i do like that 'use' can be used inside a conditional which has bugged me a lot with previous react where i'm forced to load data i don't need because of that no condition rule

  • @xzex2609
    @xzex2609 6 месяцев назад

    the repository can not be cloned : experimental versions had problem can we install react 19 instead ?

  • @michaelcyber4584
    @michaelcyber4584 10 месяцев назад

    Great 🎉

  • @doug774
    @doug774 10 месяцев назад

    Awesome

  • @2pacgamer
    @2pacgamer 9 месяцев назад

    Thx :)

  • @mayankomar1616
    @mayankomar1616 6 месяцев назад

    how do we handle Errors using usehook

  • @gametechz_
    @gametechz_ 7 месяцев назад

    not able to import use hook. Can anyone help ? How can i use it in my react 19 project

  • @lakshyarajdash
    @lakshyarajdash 10 месяцев назад

    Hey Brad I want you to make a video on MEAN stack. I want to make my portfolio website using MEAN stack.❤

  • @amiracademy464
    @amiracademy464 9 месяцев назад

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

    as of now after stable relaease i am getting refecting data even i copy paste original code hope someone will respond
    "use" hook making repeated fetch operations without rendering data just getting "loading" msgs and on while debug its too many fetch operations

  • @HousseinDroubi-o9i
    @HousseinDroubi-o9i 6 месяцев назад

    Hey man,

  • @IDOGADAN
    @IDOGADAN 4 месяца назад

    Please do authentication with react please

  • @sanukjoseph
    @sanukjoseph 10 месяцев назад

    💓

  • @OCEMTechZone
    @OCEMTechZone 10 месяцев назад

    🎉

  • @cusematt23
    @cusematt23 10 месяцев назад +1

    Does anyone know the "official" production release of react 19? Apols if i missed in video.

  • @skzahirulislam2820
    @skzahirulislam2820 10 месяцев назад +1

    1st

  • @CeezGeez
    @CeezGeez 10 месяцев назад

    14:33 lolol

  • @abddulrahmanas
    @abddulrahmanas 10 месяцев назад

    Is it worth learning React while there are "better" ones like Vue.js and Svelte?
    It seems everyone hates React and Next.js.

  • @QuadLead
    @QuadLead 10 месяцев назад +1

    Laravel (:

  • @kim92se64
    @kim92se64 10 месяцев назад

    24

  • @Chris-qg6kc
    @Chris-qg6kc 9 месяцев назад +1

    What is the point of the react team pushing nextjs if they would continue to make updates? Next has eaten their lunch already

  • @bla4224
    @bla4224 6 месяцев назад

    Informational: yes, good, thanx. Code style: terrible. E.g. you say, "writing a function" but actually you declare a constant, which refers to an anonymous function. Strange. Why do you not write `function blabla() {}'? Declaring everything as a const is certainly allowed, but hurts readability and proper understanding of the code tremendously. Also hard-coding the view (e.g. using the tailwind non-sense) is - not only IMHO - bad style (and actually wrt. this demos absolute overhead, not needed at all, disturbing). Giving a component 1 or 2 proper class names or/and ID is sufficient to write a proper CSS detached from the actual code, like in a separate css file using standard CSS selectors and thus giving users (and yourself) a chance to re-style the pages in an efficient and easy way. One can see in your demos, what a bloat the tailwind usage already creates - and these are small examples, only ...

  • @abhaykumar9806
    @abhaykumar9806 10 месяцев назад +2

    Funny, I tried to create a vite using typescript and I am not able to do `npm i -D @types/react@experimental @types/react-dom@experimental`. Any idea how can I do that @brad? When I specify the exact experimental version, I am only able to install the @types/react, but not @types/react-dom. And that is also not working

    • @akoskm
      @akoskm 9 месяцев назад

      Hey, I think I can help you out here! I made a video about setting up React 19 with Vite, including the types! ruclips.net/video/hc3WSNh-N6w/видео.htmlsi=Q8GePu8elPg8KDr3 let me know if you need more help with this!!

    • @wanai9062
      @wanai9062 9 месяцев назад

      You can view the comments for this file `types/react/ts5.0/canary.d.ts` on `@types/react`

    • @akoskm
      @akoskm 9 месяцев назад

      There's an alternative way to add the canary version by going to the npm website searching for react, and picking a version with the canary tag.
      I made a short video about how you can do this: ruclips.net/video/hc3WSNh-N6w/видео.html

    • @tomm5765
      @tomm5765 9 месяцев назад

      The canary types are in the regular @types/react package to enable them modify your tsconfig.json and add "types": ["react/canary"]. Haven't tried with experimental, maybe just react/experimental

  • @abddulrahmanas
    @abddulrahmanas 10 месяцев назад

    Is it worth learning React while there are "better" ones like Vue.js and Svelte?
    It seems everyone hates React and Next.js.

    • @yousufhossain9768
      @yousufhossain9768 9 месяцев назад

      next js is amazing what are you talking about