DEV Community

Cover image for React 19 new features and improvements

React 19 new features and improvements

Ricardo Esteves on May 17, 2024

Hi DEVs, let's check what the React team have been doing and what will be provided in react 19. Following the exciting announ...
Collapse
 
leandro_nnz profile image
Leandro Nuñez

Great reading. Thanks!

Collapse
 
ricardogesteves profile image
Ricardo Esteves

Thank you a lot @leandro_nnz , I'm glad you liked it!

Collapse
 
kunle1984 profile image
Olaoye kunle

Great write up. Can't wait to explore those new hooks

Collapse
 
ricardogesteves profile image
Ricardo Esteves

Thank you @kunle1984 , I'm glad you liked it!
I can't wait for the compiler and changes on the memoization.

Collapse
 
efpage profile image
Eckehard

What does "improved compatibility with the Web Components standard" mean? Usually WC are handled by the browser, so in most systems they are used and work like any native HTML element. It was always a disaster what pull-ups were necessary to use web components in React. Does it mean, using WC is effortless now, or does it mean, you just will struggle just a bit less than before?

Component libraries like Shoelace where forced to offer a special version to be used in React, but this reduces the whole idea of ​​web components to absurdity.

Collapse
 
ricardogesteves profile image
Ricardo Esteves

Hi @efpage ,
the React team has made some improvements with version 19 to work better with Web Components. They didn't specify in detail how the communication is done and how much effort it will take but it’s like they’ve learned to understand each other’s "language" a bit better. So, it should be easier now to use Web Components in React.

How much easier? Well, that can depend on what you’re trying to do. Let's wait to get more info about this topic.

Collapse
 
efpage profile image
Eckehard

Ok, we are curious to see. It just sounds a bit like: The contraception didn't work, but they are now slightly less pregnant.

Thread Thread
 
ricardogesteves profile image
Ricardo Esteves

😂 exactly, nice analogy!

Collapse
 
griseduardo profile image
Eduardo Henrique Gris

Great article!! Thanks for sharing

Collapse
 
aladinyo profile image
Aladinyo

So now my question is: should I learn NextJS or simply wait for React 19

Collapse
 
ricardogesteves profile image
Ricardo Esteves

both, learn nextjs and at the mean time it will be release react v19 and nextjs v15