post / September 26, 2025
React Is Changing
I’m really glad the React team is focusing on performance and developer experience.
Earlier this year, they shipped the React Compiler RC to enable automatic memoization, so we don't need to optimize rerenders manually anymore (well, we still need to, because a lot of projects haven't adopted it yet 😄).
And there’s more coming: - View Transitions support for smoother UX - Concurrent Stores, so external stores can work seamlessly with the latest React features
But I'm the most excited about the <Activity /> API! It's already available in React’s Canary release channel.
This API will allow us to hide heavy UI subtrees while keeping their state. React will still rerender the components hidden in the <Activity /> with a low priority, but will drop all the Effects until we make the UI subtree visible again. If you’ve tried to hand-roll something like this yourself, you know that it's a huge pain. 😄
If used properly, I think this may improve Core Web Vitals: - Largest Contentful Paint (LCP): Largest content elements can be rendered faster because they will have a higher priority. - Cumulative Layout Shift (CLS): Since hidden subtrees are display: none, they don’t cause reflows when toggled back, reducing layout jank. - Interaction to Next Paint (INP): By dropping Effects when hidden, we can avoid background listeners competing for the main thread resources, leading to snappier input response.
The future is bright! 🙏
What features are you expecting (or hoping) the React team will ship next?