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
- 13
- changes to make
- 0
- advisories fixed
- 16
- new
- 7
- fixes
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
- 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
onUncaughtErrorandonCaughtErrormethods tocreateRootandhydrateRootto customize this error handling. - Breaking
Removed:
propTypes: UsingpropTypeswill now be silently ignored. If required, we recommend migrating to TypeScript or another type-checking solution. - Breaking
Removed:
defaultPropsfor functions: ES6 default parameters can be used in place. Class components continue to supportdefaultPropssince there is no ES6 alternative.
- Breaking
29 other lines we could not sort, mostly version bumps
- 19.0.0
<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
useDeferredValueinitial value argument: When provided,useDeferredValuewill return the initial value for the initial render of a component, then schedule a re-render in the background with thedeferredValuereturned. - 19.0.0
StrictMode changes:
useMemoanduseCallbackwill 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
- 19.0.0
- 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 checksshouldYieldwhich can be inaccurate in test environments (#26317
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.