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

  Рет қаралды 48,002

Traversy Media

Traversy Media

Күн бұрын

In this video, we will look at some of the features of React 19 including the React compiler, use() hook, form actions, new hooks like useFormState(), useFormStatus() and useOptimistic().
Code:
github.com/bradtraversy/react...
Check out my courses:
traversymedia.com
Social Media:
Github - github.com/bradtraversy
Twitter - / traversymedia
Instagram - / traversymedia
Facebook - / traversymedia
Linkedin - / bradtraversy
Timestamps:
0:00 - Intro
1:24 - Compiler Info (Slide)
3:05 - Automatic Memoization (Slide)
4:04 - use() Hook Info (Slide)
4:57 - use client & use server (Slide)
5:43 - Actions (Slide)
6:54 - useOptimistic (Slide)
7:40 - Metadata (Slide)
8:06 - Other Changes (Slide)
9:48 - React 19 Playground Intro
10:53 - use() Hook to Fetch Joke
15:34 - use() Hook to Fetch Posts
17:05 - use() Hook with Promise
21:16 - use() Hook with Context
23:32 - Action Example 1 - Post Form
29:25 - Action Example 2 - Shopping Cart Form
35:25 - useFormStatus()
39:49 - useFormState()
44:12 - useOptimistic()

Пікірлер: 83
@philippearras8154
@philippearras8154 Ай бұрын
Thank you Brad. All the work you do !
@acidrifrancis15
@acidrifrancis15 Ай бұрын
You guy are doing tremendous work. i love the way each and every project you drop is giving us insight.
@webdevluc
@webdevluc Ай бұрын
Great video Brad. Thanks for making and sharing it
@shubhamsingh-vv7tr
@shubhamsingh-vv7tr Ай бұрын
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❤
@bogdanmarian3786
@bogdanmarian3786 Ай бұрын
Brad is the man! Thank you for your efforts and continuous learning materials!
@r-i-ch
@r-i-ch Ай бұрын
Thanks for showing these all instead of the cursory review.
@BijanProgrammer
@BijanProgrammer Ай бұрын
Thank you for this comprehensive video.
@ceralguy85
@ceralguy85 Ай бұрын
Great video Brad, thank you for always support the tech community by sharing this great content
@haciendadad
@haciendadad Ай бұрын
Great job on this video! Thanks Brad!!
@stephenadeoye8370
@stephenadeoye8370 14 күн бұрын
Thank you so much for sharing this.
@skverskk
@skverskk Ай бұрын
Great new React features. And, great presentation with real example code.
@psychodelic42
@psychodelic42 Ай бұрын
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 !!!
@devjourney8583
@devjourney8583 Ай бұрын
this is great, thank you Brad!
@abhaykumar9806
@abhaykumar9806 Ай бұрын
Overall, great video. Worth watching. Thanks for sharing!
@user-vc6nu1uj8y
@user-vc6nu1uj8y Ай бұрын
Thank you video Brad
@yman_kh
@yman_kh Ай бұрын
Great video Brad. Thanks for making and sharing it. Are you planning to update the react course on your website?
@rudolfferenckovacs812
@rudolfferenckovacs812 Ай бұрын
Thank you Brad!
@engsiyad
@engsiyad Ай бұрын
I see a lot of Next js staff in the update. Thanks for the update brad.
@eleah2665
@eleah2665 Ай бұрын
Brad is still the king. Over 2 million subscribers. Thanks.
@munna5553
@munna5553 Ай бұрын
You're are ahead of time😊😊
@SaifulIslam-ql6eb
@SaifulIslam-ql6eb Ай бұрын
I'm excited about react compiler.
@Salah-YT
@Salah-YT Ай бұрын
thank u so much 🥰👍
@asifahmed6568
@asifahmed6568 Ай бұрын
Thank you Brad
@Faatihahmed
@Faatihahmed Ай бұрын
Great video as usual. I hope i will my first dev app
@handsoncoding7693
@handsoncoding7693 Ай бұрын
Nice one Brad.
@daljeetsingh5127
@daljeetsingh5127 Ай бұрын
Great video Thanks
@nro337
@nro337 Ай бұрын
great video!!
@avneet12284
@avneet12284 Ай бұрын
Nice. I see an example for useTransition in the repo. Would be nice to get a video on it if you get some time.
@Racine14
@Racine14 Ай бұрын
Thank you #travesy for this video.
@martygo
@martygo Ай бұрын
Awesome 🤩.
@jameskirk5914
@jameskirk5914 Ай бұрын
brad the GOAT
@XviSi0nplays
@XviSi0nplays Ай бұрын
eine der besten folgen seit langem
@JohnReyBaylen
@JohnReyBaylen 2 күн бұрын
Note: React.useActionState was previously called ReactDOM.useFormState in the Canary releases, but we’ve renamed it and deprecated useFormState. - From React Doc
@2pacgamer
@2pacgamer 26 күн бұрын
Thx :)
@doug774
@doug774 Ай бұрын
Awesome
@alexdin1565
@alexdin1565 Ай бұрын
Thanks for this videos as always best content please I have a question can we use Next Js with Django?
@abdulsiyadnp
@abdulsiyadnp Ай бұрын
Wow, this is a Gem.
@larrytron1992
@larrytron1992 Ай бұрын
I'm really looking forward to React 19. It'll be nice to revisit after spending so long with Next JS
@elpolodiablo5486
@elpolodiablo5486 Ай бұрын
NextJS is built on top of React.
@user-ru8hn9hb5c
@user-ru8hn9hb5c Ай бұрын
Woah man! You are the first one on KZbin to make a tutorial on React 19! You are the GOAT.
@michaelcyber4584
@michaelcyber4584 Ай бұрын
Great 🎉
@manishkeer8338
@manishkeer8338 Ай бұрын
Thanks for the video, just have one question how we will handle error cases with use(fetch(...)) and suspense (for API calls)
@ahmedchouihi
@ahmedchouihi 5 күн бұрын
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
@ziggyshea
@ziggyshea Ай бұрын
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)
@abhaykumar9806
@abhaykumar9806 Ай бұрын
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.
@_Blackwolf_01
@_Blackwolf_01 Ай бұрын
Thanks sir i'm currently learning your DSA course and it iz amazing
@birsingh5388
@birsingh5388 Ай бұрын
He always makes great videos
@_Blackwolf_01
@_Blackwolf_01 Ай бұрын
@@birsingh5388 like hitesh sir
@zaibali254
@zaibali254 Ай бұрын
Can you share link of this course
@ceralguy85
@ceralguy85 Ай бұрын
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 Ай бұрын
Thanks for the effort sir, will React 19 affect React Native?
@sanukjoseph
@sanukjoseph Ай бұрын
💓
@amiracademy464
@amiracademy464 Ай бұрын
@vladoks7965
@vladoks7965 Ай бұрын
Are you going to make Laravel course on Udemy?
@tahirahmed9446
@tahirahmed9446 Ай бұрын
Really need laravel course.
@lucadifazio2735
@lucadifazio2735 Ай бұрын
So what's the difference between form action and form onSubmit?
@OCEMTechZone
@OCEMTechZone Ай бұрын
🎉
@harsimothukuri155
@harsimothukuri155 Ай бұрын
Brad u r my motivation
@alvaro-escalante-naves
@alvaro-escalante-naves 2 күн бұрын
How would you call the fetchData from an onclick event using 'use'?
@PeterScream
@PeterScream 23 күн бұрын
nothing wrong with the longer videos mate
@WanKy182
@WanKy182 Ай бұрын
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?
@Immelstorn
@Immelstorn Ай бұрын
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 Ай бұрын
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
@lakshyarajdash
@lakshyarajdash Ай бұрын
Hey Brad I want you to make a video on MEAN stack. I want to make my portfolio website using MEAN stack.❤
@Zeeshan-oi1vj
@Zeeshan-oi1vj Ай бұрын
Great video, skipping unnecessary part was good
@skzahirulislam2820
@skzahirulislam2820 Ай бұрын
1st
@CeezGeez
@CeezGeez Ай бұрын
14:33 lolol
@cusematt23
@cusematt23 Ай бұрын
Does anyone know the "official" production release of react 19? Apols if i missed in video.
@kim92se64
@kim92se64 Ай бұрын
24
@QuadLead
@QuadLead Ай бұрын
Laravel (:
@abdosarmini
@abdosarmini Ай бұрын
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 Ай бұрын
next js is amazing what are you talking about
@Chris-qg6kc
@Chris-qg6kc Ай бұрын
What is the point of the react team pushing nextjs if they would continue to make updates? Next has eaten their lunch already
@abhaykumar9806
@abhaykumar9806 Ай бұрын
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 Ай бұрын
Hey, I think I can help you out here! I made a video about setting up React 19 with Vite, including the types! kzbin.info/www/bejne/npSWiIaEnZKBbNksi=Q8GePu8elPg8KDr3 let me know if you need more help with this!!
@wanai9062
@wanai9062 28 күн бұрын
You can view the comments for this file `types/react/ts5.0/canary.d.ts` on `@types/react`
@akoskm
@akoskm 28 күн бұрын
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: kzbin.info/www/bejne/npSWiIaEnZKBbNk
@tomm5765
@tomm5765 27 күн бұрын
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
@abdosarmini
@abdosarmini Ай бұрын
Is it worth learning React while there are "better" ones like Vue.js and Svelte? It seems everyone hates React and Next.js.
Web Development In 2024 - A Practical Guide
2:43:32
Traversy Media
Рет қаралды 303 М.
I Trapped Myself in a Box with Colored Smoke!
00:50
A4
Рет қаралды 18 МЛН
They're a tough bunch!! # Superman can't fly # Superman couple # Spider-Man
00:47
АВДА КЕДАВРАААААА😂
00:11
Romanov BY
Рет қаралды 7 МЛН
HTMX Crash Course | Dynamic Pages Without Writing Any JavaScript
56:47
Traversy Media
Рет қаралды 123 М.
Every React 19 Feature Explained in 8 Minutes
7:35
Code Bootcamp
Рет қаралды 90 М.
Learnings from our multi-tenant Laravel application
9:58
Sabatino Masala
Рет қаралды 7 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 122 М.
Everything You Need to Know About React 19
21:42
CoderOne
Рет қаралды 7 М.
React Crash Course 2024
3:04:36
Traversy Media
Рет қаралды 188 М.
Angular’s Third Era is…weird
21:41
Theo - t3․gg
Рет қаралды 84 М.
Are You Too Dumb To Code? A Chat About Imposter Syndrome
7:08
Traversy Media
Рет қаралды 60 М.
Finally Fix Your Issues With JS/React Memory Management 😤
20:13
Jack Herrington
Рет қаралды 74 М.
Web Developer Roadmap (2024) - Everything is Changing
25:02
ByteGrad
Рет қаралды 200 М.
Опасная флешка 🤯
0:22
FATA MORGANA
Рет қаралды 561 М.
Which Phone Unlock Code Will You Choose? 🤔️
0:12
Game9bit
Рет қаралды 6 МЛН
Что если бы Apple делала зубные щётки?
0:59
iPhone - телефон для нищебродов?!
0:53
ÉЖИ АКСЁНОВ
Рет қаралды 3,5 МЛН
Почему сканер ставят так не удобно?
0:47
Не шарю!
Рет қаралды 726 М.
План хакера 🤯 #shorts #фильмы
0:59
BruuHub
Рет қаралды 990 М.