Packages

react

19.3.1 · 14 Oct 2026MIT275.7M / weekRepositoryHomepagenpmAtom feed

Your version

19.1.0

28 Mar 2025Where it was published

19.3.1 is the newest release of 19.x.

Summary· from the note as AI read it

Migration neededRead before upgrading: 2 changes to make.

Before you upgrade

  • useId output format changed; update snapshots or code parsing generated IDs
  • Stop using React.act in production builds

New

  • Enhanced support for Suspense boundaries to be used anywhere, including the client, server, and during hydration.
  • Reduced unnecessary client rendering through improved hydration scheduling
  • Increased priority of client rendered Suspense boundaries
  • Reduced garbage collection pressure by improving Suspense boundary retries.
  • Added a dev-only warning for null/undefined created in useEffect, useInsertionEffect, and useLayoutEffect.

In short

1 breaking1 removed3 new4 faster6 fixed

  • Breaking

    Updated useId to use valid CSS selectors, changing format from :r123: to «r123».

  • Removed

    Fixed a bug where dev-only methods were exported in production builds. React.act is no longer available in production builds.

Release note

The section about react of a note shared by several packages.

React

  • Enhanced support for Suspense boundaries to be used anywhere, including the client, server, and during hydration. #32069, #32163, #32224, #32252

  • Reduced unnecessary client rendering through improved hydration scheduling #31751

  • Increased priority of client rendered Suspense boundaries #31776

  • Fixed frozen fallback states by rendering unfinished Suspense boundaries on the client. #31620

  • Reduced garbage collection pressure by improving Suspense boundary retries. #31667

  • Fixed erroneous “Waiting for Paint” log when the passive effect phase was not delayed #31526

  • Fixed a regression causing key warnings for flattened positional children in development mode. #32117

  • Updated useId to use valid CSS selectors, changing format from :r123: to «r123». #32001

  • Added a dev-only warning for null/undefined created in useEffect, useInsertionEffect, and useLayoutEffect. #32355

  • Fixed a bug where dev-only methods were exported in production builds. React.act is no longer available in production builds. #32200

  • Improved consistency across prod and dev to improve compatibility with Google Closure Complier and bindings #31808

  • Improve passive effect scheduling for consistent task yielding. #31785

  • Fixed asserts in React Native when passChildrenWhenCloningPersistedNodes is enabled for OffscreenComponent rendering. #32528

  • Fixed component name resolution for Portal #32640

  • Added support for beforetoggle and toggle events on the dialog element. #32479 #32479

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.