React wants to win you back…
By Fireship
Key Concepts
- Referential Stability: Ensuring that references to values or functions remain consistent across renders to prevent unnecessary re-renders or side effects.
useEffectHook: A React hook used for performing side effects in function components, such as data fetching, subscriptions, or manually changing the DOM.use``EventHook: A new React hook (introduced in React 19.2) that allows functions to be used withinuseEffectwithout being added to the dependency array, thus preventing unnecessary effect re-runs.ActivityComponent: A new React component that functions like a smarterdisplay: none, allowing components to be shown/hidden while maintaining their state and deprioritizing work for hidden components.ViewTransitionComponent: A new component (available in Canary builds) for animating transitions between different UIs.FragmentRef: The ability to pass arefto aFragment, simplifying interaction with platform APIs.- React Compiler: A tool that automatically optimizes React applications by memoizing values, reducing the need for manual optimization with hooks like
useMemoanduseCallback. - React Foundation: The new governing body for React and React Native, aiming to ensure their future independence from Meta.
- Remix 3: A new framework built by the Remix team, emphasizing web fundamentals like closures and events, and offering TypeScript and JSX support out-of-the-box.
- Vaporware: A product that is announced but not yet released or available.
- UI Transitions: Visual animations that occur when a user navigates between different states or views within an application.
React Comp 2025: A Critical Review of New APIs and the React Ecosystem
This report revisits the perceived shortcomings of React and evaluates the impact of recent announcements made at React Comp, specifically focusing on improvements to core APIs and the broader React ecosystem. The author, an "anti-react influencer," acknowledges that this year's announcements may have addressed long-standing issues.
The Persistent Problem of Referential Stability and useEffect
A significant challenge in React development has been achieving referential stability to prevent application instability. The useEffect hook, a primary tool for managing side effects, is often implicated in bugs.
- Case Study: Cloudflare Outage: Cloudflare experienced a massive outage due to their dashboard making unnecessary API calls, a common pitfall when using
useEffectincorrectly. This situation highlights the complexity and potential for error in managing side effects. - Documentation Overload: The author points to the extensive documentation required to use
useEffectcorrectly, suggesting a steep learning curve and a high potential for developer error. This includes understanding when to use it, when not to use it, its actual functionality, and how to use it properly.
Innovations in React 19.2 and Beyond
React 19.2 introduces new APIs designed to mitigate common issues:
-
useEventHook: This new hook addresses the problem ofuseEffectre-running due to changing values within its scope.- Mechanism: It creates a stable function that can be used inside
useEffectwithout needing to be declared in the dependency array. - Benefit: This is crucial for scenarios where a value is needed within
useEffectbut its changes should not trigger the effect to re-run.
- Mechanism: It creates a stable function that can be used inside
-
ActivityComponent: This component offers a more sophisticated way to manage component visibility.- Analogy: Described as a "smarter
display: none." - Functionality: Allows components to be shown and hidden.
- Key Advantage: Unlike
display: none, React maintains the state of hidden components and deprioritizes the work performed for them.
- Analogy: Described as a "smarter
-
Canary Version Features:
ViewTransitionComponent: Enables animating transitions between different UIs, enhancing user experience.FragmentRef: Allows passing arefto aFragment, simplifying integration with platform APIs.
The Game-Changer: React Compiler Reaches 1.0
The stabilization of the React Compiler at version 1.0 is presented as a potentially transformative announcement.
- Problem Addressed: The pervasive use of memoization hooks (
useMemo,useCallback) in React codebases, often as a "performance silver bullet," frequently leads to slower applications due to incorrect implementation. - Compiler's Role: The React Compiler will automatically optimize applications, eliminating the need for developers to manually manage memoization and reducing the anxiety around render counts.
Ecosystem Shifts: Foundation and Remix
Significant changes are occurring in the broader React ecosystem:
-
React and React Native Foundation: After 15 years under Meta's ownership, React and React Native are transitioning to a new, independent foundation with its own technical governance structure. This move is intended to "ensure the future of React."
-
Remix 3: A Web-Fundamentalist Alternative: The Remix team is developing Remix 3, a new framework that diverges from React's approach.
- Philosophy: Embraces web fundamentals like closures and events.
- Features: Includes out-of-the-box TypeScript and JSX support.
- Distinction from React: Aims to avoid the historical complexities and "oopsie, never minds" associated with React's evolution.
- Current Status: Described as "vaporware" as it has not been officially released, but its vision of an AI-friendly framework built on web APIs is appealing.
The Importance of UI Transitions and Design Insights
The report concludes by emphasizing the end-user experience, particularly the visual appeal of UI transitions.
- Sponsor Spotlight: Mobin.com: Mobin.com is highlighted as a resource for detailed breakdowns of UI designs in popular applications.
- Functionality: Provides insights into screen designs, user flows (e.g., onboarding, checkout), and allows for copying designs into Figma.
- Features: Filtering by app category and UI elements.
- Call to Action: Offers a free trial and a 20% discount with a provided link.
Conclusion
The announcements from React Comp 2025 suggest a significant step forward for React, particularly with the introduction of use Event, the Activity component, and the stable React Compiler. These advancements aim to simplify common development challenges related to side effects and performance optimization. Concurrently, the ecosystem is evolving with the establishment of an independent React Foundation and the emergence of alternative frameworks like Remix 3, which prioritize web fundamentals. The ultimate goal remains to deliver beautiful and performant user interfaces, with tools like Mobin.com offering valuable design insights.
Chat with this Video
AI-PoweredLoad the transcript when you're ready to chat so the initial page stays lighter.
Related Videos

Why Does This Guy Appear In Kids Videos?
sphynx

TIC en las Organizaciones - Electiva Complementaria II Unisimon
Julieth Güell S

How to Tame Your Advice Monster | Michael Bungay Stanier | TED
TED

Margaret Heffernan: Why it's time to forget the pecking order at work
TED

The importance of psychological safety: Amy Edmondson
The King's Fund

What Is Psychological Safety?
Harvard Business Review

13-Conflict Management: Listening in Conflict
Deliberate Development