DEV Community

Cover image for React Compiler: Everything You Need to Know

React Compiler: Everything You Need to Know

Mohamed Jubair on February 29, 2024

What if we could write React code without having to deal with memoization and issues with multiple re-renders. That’s what React 19, the upcoming m...
Collapse
 
fpaghar profile image
Fatemeh Paghar

🚀 With the React compiler, we can anticipate a paradigm shift in how React applications are built and optimized. The potential benefits include significant performance improvements, streamlined development experiences, and enhanced code maintainability. The move towards re-rendering based on semantic value rather than object identity marks a significant step forward for React's future.

Collapse
 
lundjrl profile image
James Robert Lund III

Adding to read later. Thanks for diving in!

Collapse
 
samuel_kelv profile image
Samuel Kelv

Wow, great update. That means we might have to do away with useMemo(), use callback() functions

Collapse
 
efpage profile image
Eckehard

Is React going to be Svelte V2 ?

Collapse
 
mjubair profile image
Mohamed Jubair

In my opinion, react compiler is primaily a solution to optimize the rendering issues taking away the need to manually manage it.

But there is one main difference between the two which sets them apart is that in react we write HTML in Javascript whereas in Svelte we write javascript in HTML.

We can only wait and watch what the React team comes up with next.

Collapse
 
marcosmonterodev profile image
Marcos Montero

Without useMemo and useCallback, what is there left to ask in a React interview ? 😂

Collapse
 
sudhirkumar1003 profile image
Sudhir Kumar

But without deep comparison, how react will know that wheather the array or object has been modified or not?

Collapse
 
lotfijb profile image
Lotfi Jebali

insightful