fbpx
  1. Tubelator AI
  2. >
  3. Videos
  4. >
  5. Education
  6. >
  7. What's New in React 19 - Major Changes and Updates

What's New in React 19 - Major Changes and Updates

Available In Following Subtitles
English
Variant 1
Posted on:
Video by: Piyush Garg
Discover the latest updates and major changes in React 19, now stable. Find out what React developers should watch out for and get insight into the key features and improvements in React 19.
tubelator logo

Instantly generate YouTube summary, transcript and subtitles!

chrome-icon Install Tubelator On Chrome

Video Summary & Chapters

No chapters for this video generated yet.

Video Transcript

0:00
So, hey everyone, welcome back, welcome to another exciting video
0:03
And in this video, let's talk about React 19
0:08
So, yesterday there was a post by React team
0:10
In which they said that React 19 is stable
0:12
So, let's see what are the major changes in React 19
0:17
And as a React developer, what you should be worried about
0:20
So, with that, let's start with the video
0:22
So, React 19 is now stable, that's good
0:25
So, there was a post in April as well
0:28
So, I made a video on that as well
0:29
So after that there are some more changes
0:32
So here there is something which I want to tell you
0:35
So we will see this later
0:36
So let's see what are the things in React 19
0:38
So we will cover this video in 3 things
0:40
No.1 is what's new, improvements and how to upgrade
0:43
How to upgrade is kind of easy
0:46
So let's start
0:47
First of all we have actions
0:50
So in React 19 we have a new feature called actions
0:54
So what are actions?
0:56
A common use case in React application is to perform data mutation and update the state in response
1:01
So, what you do most commonly is, let's say you have a form
1:05
So, what you do is, user clicked on the form, you call a handler function
1:10
What do you do inside the handler function?
1:13
First of all, you try to say setLoading true, means we are loading something
1:18
Then you make the API call
1:19
Now, when this API call gets completed, we do setLoading false
1:23
then if this API call fails, we set some error state
1:26
and if it is successful, we set our successful state
1:30
so this is how we do right
1:31
so you can see that we have a very simple handle submit function
1:34
so first of all we will true this pending
1:36
then we will update something
1:38
then we will false this pending
1:40
if there is an error, we will set the error
1:42
else we will redirect the user
1:43
so this is a common use case
1:45
but in react 19, you have something known as
1:49
if we go down, in react 19
1:51
you have something known as use transition hook
1:53
so this is a new hook from react 19 team
1:56
so what you can do is, you can just say use transition
1:59
so isPending startTransition
2:02
we will do startTransition and in this
2:05
we will pass our asynchronous function
2:07
now interestingly here I don't have to handle this pending state
2:12
so this particular function takes an asynchronous
2:15
a promise function as a parameter
2:18
and till the time it is in pending state, this pending will remain true
shape-icon

Download extension to view full transcript.

chrome-icon Install Tubelator On Chrome

YouTube First AI Assistant

chrome-icon Install On Chrome

AI Art For This Video No image generated for this video yet but here is the example.

ai art
0:09
Prompt
spider man in aladdin style, bright colors, hyper quality, high detail, high resolution, --video --s 750 --v 6. 0 --ar 1:2
ai images

Explore more in Education