Packages

react

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

Upgrading react From 18.3.1 to 19.0.0

1 release in betweenevery note read

Other targets from 18.3.1Latest19.3.1
  1. 18.3.1yours
  2. 19.0.0target

Start here

Before you upgrade

Tick each one off as you go
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0
  • Breaking19.0.0

Release by release

  1. 19.0.0

    Migration needed5 Dec 202416 new · 7 fixes
    • Breaking

      New JSX Transform is now required: We introduced a new JSX transform in 2020 to improve bundle size and use JSX without importing React. In React 19, we’re adding additional improvements like using ref as a prop and JSX speed improvements that require the new transform.

    • Breaking

      Errors in render are not re-thrown: Errors that are not caught by an Error Boundary are now reported to window.reportError. Errors that are caught by an Error Boundary are reported to console.error. We’ve introduced onUncaughtError and onCaughtError methods to createRoot and hydrateRoot to customize this error handling.

    • Breaking

      Removed: propTypes: Using propTypes will now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution.

    • Breaking

      Removed: defaultProps for functions: ES6 default parameters can be used in place. Class components continue to support defaultProps since there is no ES6 alternative.

29 other lines we could not sort, mostly version bumps
  • <Context> as a provider: You can now render <Context> as a provider instead of <Context.Provider>.

    19.0.0
  • Cleanup functions for refs: When the component unmounts, React will call the cleanup function returned from the ref callback.

    19.0.0
  • useDeferredValue initial value argument: When provided, useDeferredValue will return the initial value for the initial render of a component, then schedule a re-render in the background with the deferredValue returned.

    19.0.0
  • StrictMode changes: useMemo and useCallback will now reuse the memoized results from the first render, during the second render. Additionally, StrictMode will now double-invoke ref callback functions on initial mount.

    19.0.0
  • Sibling pre-rendering replaced by sibling pre-warming (#26380, #26549, #30761, #30800, #30762, #30879, #30934, #30952, #31056, #31452

    19.0.0
  • Don’t rethrow errors at the root (#28627, #28641

    19.0.0
  • Batch sync discrete, continuous, and default lanes (#25700

    19.0.0
  • Switch <Context> to mean <Context.Provider> (#28226

    19.0.0
  • Changes to StrictMode

    19.0.0
  • act() no longer checks shouldYield which can be inaccurate in test environments (#26317

    19.0.0

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.