React 19 Released
React 19 has been fully released on December 5, 2024. The new update introduces new features aiming to improve both developer experience and application performance:
- Actions will simplify state updates by allowing asynchronous functions to handle pending states, errors, and optimistic updates automatically.
- Server Components now enable rendering components on the server, reducing client-side JavaScript bundle sizes and improving load times.
- The update introduced New Hooks like `use` which allows reading resources during render, suspending until promises resolve, `useFormStatus` to provide access to the status of parent <form> elements, and `useOptimistic` for assisting in rendering optimistic UI updates while asynchronous requests are in progress.
- React Compiler transforms React code into optimized JavaScript, potentially improving performance by reducing unnecessary re-renders. This feature is still in beta.
The long-awaited update includes some improvements as well:
- React DOM Static APIs like prerender and prerenderToNodeStream to react-dom/static are now available. They boost static site generation by waiting for data to load before returning static HTML streams.
- The Enhanced Server-Side Rendering (SSR) affects rendering efficiency on the server, leading to faster page loads and better SEO.
To learn more, read full release notes.
Find out how React JS cuts the development cost
To stay on top of the latest tech news, subscribe to Frictionless, a newsletter by our CEO & CGO, Chris Lojniewski.