unstale

npm / react

react

What changed in react 17 to 19, from its official release notes, upgrade guides and advisories. Also covers @types/react, react-dom, react-server-dom-parcel, react-server-dom-turbopack, react-server-dom-webpack. Sources checked 2026-12-05.

75 breaking5 security16 deprecations80 new APIs and options7 performance43 behavior and defaults1 tooling18 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

react 19172 changes

Breaking changes 56

  • Moves react-server-dom-webpack/*.unbundled to the private react-server-dom-unbundled package.

    19.3.0release notes

  • Types were hardened in React Server Components, which may affect developer-written type usage.

    19.2.6release notes

  • act is imported from react instead of react-dom/test-utils.

    19.0.0upgrade guide

  • Legacy Context is removed; migrate class components to the contextType API.

    19.0.0upgrade guiderelease notes

  • React.createFactory is removed; migrate to JSX.

    19.0.0upgrade guiderelease notes

  • Moves createRoot to react-dom/client.

    19.0.0release notes

  • Function components no longer support defaultProps; use ES6 default parameters. Class components continue to support defaultProps.

    19.0.0upgrade guiderelease notes

  • Deprecated TypeScript types associated with removed APIs were cleaned up; some moved to more relevant packages and others are no longer needed.

    19.0.0upgrade guide

  • Removes findDOMNode.

    19.0.0release notesupgrade guide

  • Exhausts its queue even if something throws.

    19.0.0release notes

  • Removes hydrate from react-dom; use hydrateRoot from react-dom/client instead.

    19.0.0release notes

  • Moves hydrateRoot to react-dom/client.

    19.0.0release notes

  • Removes the isAsyncMode method.

    19.0.0release notes

  • Removes the isConcurrentMode method.

    19.0.0release notes

  • react-dom now errors for javascript URLs in src and href.

    19.0.0upgrade guiderelease notes

  • The global JSX namespace was removed in favor of React.JSX; JSX namespace augmentations must be wrapped in a module declaration.

    19.0.0upgrade guiderelease notes

  • The layout effect warning during server-side rendering was removed.

    19.0.0upgrade guide

  • Removes legacy mode.

    19.0.0release notes

  • Support for module pattern factories is removed; migrate to regular functions.

    19.0.0upgrade guiderelease notes

  • React 19 requires the new JSX transform for features including ref as a prop and JSX speed improvements.

    19.0.0upgrade guiderelease notes

  • errorInfo.digest was removed from onRecoverableError.

    19.0.0upgrade guiderelease notes

  • Transitions in popstate are now synchronous.

    19.0.0upgrade guiderelease notes

  • Removes prepareUpdate.

    19.0.0release notes

  • Generates static HTML and waits for data to load, with support for streaming environments.

    19.0.0release notes

  • React removes propType checks; using propTypes is silently ignored. The guide recommends migrating to TypeScript or another type-checking solution.

    19.0.0upgrade guiderelease notes

  • Throws an error when react and react-dom versions do not match.

    19.0.0release notes

  • All test-utils functions other than act are removed; their exports will be removed in a future version.

    19.0.0upgrade guide

  • Removed; act moved to react and all other utilities were removed.

    19.0.0release notes

  • Removes test-utils.

    19.0.0release notes

  • Deprecated methods were removed from react-is.

    19.0.0upgrade guide

  • Removes the react-test-renderer/shallow export.

    19.0.0release notesupgrade guide

  • Adds a deprecation error to react-test-renderer on web.

    19.0.0release notes

  • The deprecated TypeScript type was removed; the suggested replacement is React.ReactElement | number | string.

    19.0.0release notes

  • Removed in favor of hydrateRoot.

    19.0.0release notes

  • Removed in favor of the concurrent createRoot API.

    19.0.0release notes

  • ReactElement props now default to unknown instead of any when no type argument is provided.

    19.0.0upgrade guiderelease notes

  • The deprecated TypeScript type was removed; the suggested replacement is Iterable<React.ReactNode>.

    19.0.0release notes

  • The deprecated TypeScript type was removed; the suggested replacement is ReadonlyArray<React.ReactNode>.

    19.0.0release notes

  • The deprecated TypeScript type was removed; the suggested replacement is number | string.

    19.0.0release notes

  • TypeScript now rejects ref callbacks that return anything other than a cleanup function; avoid implicit returns when assigning the ref.

    19.0.0upgrade guideupgrade guiderelease notes

  • Removes render from react-dom; use createRoot from react-dom/client instead.

    19.0.0release notes

  • Removes renderToStaticNodeStream.

    19.0.0release notes

  • The TypeScript type moved to prop-types.

    19.0.0release notes

  • React internals were renamed, which may affect libraries that depend on them; the recommendation is to remove code that depends on internals.

    19.0.0upgrade guide

  • react-dom warns and does not set an empty string for src or href, except on anchor tags.

    19.0.0upgrade guiderelease notes

  • String refs in class components are removed; migrate to ref callbacks.

    19.0.0upgrade guiderelease notes

  • React no longer produces UMD builds; use an ESM-based CDN to load React with a script tag.

    19.0.0upgrade guiderelease notes

  • ReactDOM.unmountComponentAtNode is removed; use root.unmount().

    19.0.0upgrade guiderelease notes

  • Removes unmountComponentAtNode.

    19.0.0release notes

  • unstable_createEventHandle was removed from react-dom.

    19.0.0upgrade guiderelease notes

  • unstable_flushControlled was removed from react-dom.

    19.0.0upgrade guiderelease notes

  • unstable_renderSubtreeIntoContainer was removed from react-dom.

    19.0.0upgrade guiderelease notes

  • unstable_runWithPriority was removed from react-dom.

    19.0.0upgrade guiderelease notes

  • useRef now requires an argument, and its types make refs mutable; overloads support null and undefined initial values.

    19.0.0upgrade guiderelease notes

  • The deprecated TypeScript type was removed; use FC instead.

    19.0.0release notes

  • The deprecated TypeScript type was removed; use FunctionComponent instead.

    19.0.0release notes

Security 5

Deprecations 8

  • Development builds warn when a component appears to have been unblocked by calling use() conditionally.

    19.3.0release notes

  • FormEvent is deprecated in the @types/react declarations: FormEvent doesn't actually exist. You probably meant to use ChangeEvent, InputEvent, SubmitEvent, or just SyntheticEvent instead depending on the event type.

    19.2.10source

  • FormEventHandler is deprecated in the @types/react declarations: FormEventHandler doesn't actually exist. You probably meant to use ChangeEventHandler, InputEventHandler, SubmitEventHandler, or just EventHandler instead depending on the event type.

    19.2.10source

  • Access is deprecated in favor of element.props.ref and results in a warning.

    19.0.0release notes

  • MutableRef is deprecated in favor of a single RefObject type, which useRef always returns.

    19.0.0upgrade guide

  • react-test-renderer logs a deprecation warning and switches to concurrent rendering; the guide recommends modern testing libraries.

    19.0.0upgrade guiderelease notes

  • Passing a promise created during render to use warns; promises must come from a Suspense-compatible library or framework that supports caching.

    19.0.0upgrade guide

  • The Canary API name was replaced by useActionState and useFormState is deprecated.

    19.0.0upgrade guide

New APIs and options 56

  • Adds an API for assigning transition types to React View Transition animations.

    19.3.0release notes

  • Adds a react-dom API that marks a Suspense subtree as browser-only when used with use().

    19.3.0release notes

  • Adds fetchPriority support for module resources.

    19.3.0release notes

  • Adds refs to Fragment components to support composable platform behavior.

    19.3.0release notes

  • Adds support for the maskType SVG prop.

    19.3.0release notes

  • Adds support for the onFullscreenChange event.

    19.3.0release notes

  • Adds support for the onFullscreenError event.

    19.3.0release notes

  • Allows overriding request.timeOrigin through options.startTime.

    19.3.0release notes

  • Adds an option to observe when a subtree defers rendering to the browser.

    19.3.0release notes

  • Enables React integration with the Trusted Types API.

    19.3.0release notes

  • Adds an option to allow partial streams in the Flight Client.

    19.3.0release notes

  • Adds the ViewTransition component to power View Transition animations in React.

    19.3.0release notes

  • Adds a streaming server renderer for Bun.

    19.0.0release notes

  • A context can be rendered directly as a provider instead of using Context.Provider.

    19.0.0upgrade guiderelease notes

  • Adds an onCaughtError option for custom handling of errors caught by an Error Boundary.

    19.0.0upgrade guideupgrade guide

  • Adds an onUncaughtError option for custom handling of errors not caught by an Error Boundary.

    19.0.0upgrade guideupgrade guide

  • Adds crossorigin support to bootstrap scripts.

    19.0.0release notes

  • Adds fetchPriority support to img and link elements.

    19.0.0release notes

  • Adds Form Actions to handle form submission.

    19.0.0release notes

  • Form-related elements accept functions as formAction props to submit forms with Actions.

    19.0.0upgrade guiderelease notes

  • React DOM recognizes imageSizes as a known prop.

    18.0.0, 19.0.0upgrade guiderelease notesrelease notes

  • React DOM recognizes imageSrcSet as a known prop.

    18.0.0, 19.0.0upgrade guiderelease notesrelease notes

  • Adds support for inert.

    19.0.0release notes

  • Stylesheet links can specify precedence so React manages DOM insertion order and loads external stylesheets before revealing dependent content.

    19.0.0upgrade guide

  • Adds nonce support to bootstrap scripts.

    19.0.0release notes

  • Allows createRoot and hydrateRoot users to customize handling of errors caught by an Error Boundary.

    19.0.0release notes

  • Adds the onHeaders entrypoint option.

    19.0.0release notes

  • Adds support for the onScrollEnd event.

    19.0.0release notes

  • Allows createRoot and hydrateRoot users to customize handling of errors not caught by an Error Boundary.

    19.0.0release notes

  • Adds support for the Popover API.

    19.0.0release notes

  • Adds a React DOM API for preconnecting to a host to optimize resource loading.

    19.0.0upgrade guiderelease notes

  • Adds a connection prewarming API as part of Document Metadata support.

    19.0.0release notes

  • Adds a React DOM API for prefetching DNS to optimize resource loading.

    19.0.0upgrade guiderelease notes

  • Adds a DNS prefetch API as part of Document Metadata support.

    19.0.0release notes

  • Adds a React DOM API for eagerly loading and executing resources such as scripts.

    19.0.0upgrade guiderelease notes

  • Adds a resource preinitialization API as part of Document Metadata support.

    19.0.0release notes

  • Adds a module preinitialization API as part of Document Metadata support.

    19.0.0release notes

  • Adds a React DOM API for preloading browser resources to optimize resource loading.

    19.0.0upgrade guiderelease notes

  • Adds nonce and fetchpriority support in preload links.

    19.0.0release notes

  • Adds a resource preload API as part of Document Metadata support.

    19.0.0release notes

  • Adds a module preload API as part of Document Metadata support.

    19.0.0release notes

  • Adds a static-generation API that waits for data to load before returning static HTML, for streaming environments.

    19.0.0upgrade guide

  • Adds a static-generation API that waits for data to load before returning static HTML, for streaming environments.

    19.0.0upgrade guiderelease notes

  • Libraries shipping Server Components can target React 19 as a peer dependency with a react-server export condition for supported frameworks.

    19.0.0upgrade guide

  • Adds referrerPolicy to ReactDOM.preload().

    19.0.0release notes

  • Exports the version.

    19.0.0release notes

  • Function components can access ref as a prop, so new function components no longer need forwardRef; class component refs are not passed as props.

    19.0.0upgrade guiderelease notes

  • Adds a React DOM API for manually resetting a form.

    19.0.0upgrade guiderelease notes

  • Adds support for the SVG transformOrigin prop.

    19.0.0release notes

  • Adds an API for reading promises and context during render; unlike hooks, it can be called conditionally.

    19.0.0upgrade guiderelease notes

  • The directive defines Server Actions, allowing Client Components to call asynchronous functions executed on the server.

    19.0.0upgrade guiderelease notes

  • Adds a hook that wraps an Action and returns its last result and pending state.

    19.0.0upgrade guiderelease notes

  • Adds an initial value returned on the component's first render while a background re-render with the deferred value is scheduled.

    19.0.0upgrade guiderelease notes

  • Adds a hook that reads the status of the parent form, including its pending state.

    19.0.0upgrade guiderelease notes

  • Adds a hook that provides status information about the last form submission.

    19.0.0release notes

  • Adds a hook for displaying an optimistic value while an asynchronous request is in progress, then reverting to the current value when it finishes or errors.

    19.0.0upgrade guiderelease notes

Performance 5

Behavior and default changes 25

  • Adds support for transporting Error.cause through Flight replies.

    19.3.0release notes

  • Allows Server Components to render context providers from client modules.

    19.3.0release notes

  • Includes submitter in submit events and uses the FormData submitter parameter.

    19.3.0release notes

  • Transitions render independently, so a slow transition no longer holds up unrelated transitions.

    19.3.0release notes

  • Transitions render independently instead of being entangled into one render.

    19.3.0release notes

  • Adds full custom element support: server rendering emits eligible primitive props as attributes, while client rendering assigns matching instance properties and otherwise uses attributes.

    19.0.0upgrade guide

  • Components can render title, link, and meta tags, which React automatically hoists to the document head.

    19.0.0upgrade guiderelease notes

  • Error handling removes duplicate reports and combines error information into a single log message.

    19.0.0upgrade guide

  • The form action prop accepts a function and uses Actions by default; successful submission automatically resets uncontrolled form fields.

    19.0.0upgrade guiderelease notes

  • Unexpected tags in the head and body are skipped during hydration; stylesheets inserted by third-party scripts or extensions are preserved during a full-document client re-render.

    19.0.0upgrade guide

  • Hydration mismatch reporting now logs a single message with a diff instead of multiple errors without mismatch details.

    19.0.0upgrade guiderelease notes

  • Adds a server condition for react/jsx-dev-runtime.

    19.0.0release notes

  • Server Components are stable in React 19, but APIs used to implement their bundlers and frameworks may break between React 19 minor versions.

    19.0.0upgrade guiderelease notes

  • Releases React Server Components as stable.

    19.0.0release notes

  • Strict Mode double-invokes ref callback functions on initial mount in development to surface bugs before production.

    19.0.0upgrade guide

  • Ref callbacks can return cleanup functions, which React calls when the component unmounts; React then skips calling that ref with null.

    19.0.0upgrade guiderelease notes

  • Async scripts can be rendered anywhere in the component tree and are deduplicated so React loads and executes each script only once.

    19.0.0upgrade guiderelease notes

  • Can now accept async functions, called Actions, which can perform side effects and keep a Transition pending until their work finishes.

    19.0.0release notes

  • useMemo and useCallback reuse memoized results from the first render during the second; ref callbacks are double-invoked on initial mount.

    19.0.0release notes

  • When a component suspends, React commits the nearest fallback immediately, then renders suspended siblings to pre-warm lazy requests.

    19.0.0upgrade guideupgrade guiderelease notes

  • Treats toggle and beforetoggle as discrete events.

    19.0.0release notes

  • During Strict Mode's second development render, useCallback reuses the memoized result from the first render.

    19.0.0upgrade guide

  • During Strict Mode's second development render, useMemo reuses the memoized result from the first render.

    19.0.0upgrade guide

  • Improved type inference changes its type-parameter signature: use no type arguments or provide both state and action types; the recommended practice is to omit them.

    19.0.0upgrade guiderelease notes

  • Ref objects returned from useRef are always mutable instead of sometimes immutable.

    19.0.0release notes

Tooling 1

  • Types were hardened for React Server Components, improving type safety for developers using them.

    19.0.6, 19.1.7release notesrelease notes

Fixes and other changes 16

react 1840 changes

Breaking changes 7

  • act now batches updates.

    18.0.0upgrade guiderelease notes

  • Missing or extra text content is treated as an error; React reverts to client rendering up to the closest Suspense boundary instead of patching individual nodes.

    18.0.0release notes

  • React depends on Promise, Symbol, and Object.assign; older browsers without compliant native implementations may need a global polyfill in the bundled application.

    18.0.0release notes

  • The unstable scheduler/tracing API was removed.

    18.0.0release notes

  • A fallback value of undefined now behaves the same as null instead of being ignored.

    18.0.0upgrade guiderelease notes

  • The unsupported API has been removed.

    18.0.0upgrade guiderelease notes

  • Effects resulting from discrete events such as clicks are flushed synchronously.

    18.0.0upgrade guiderelease notes

Deprecations 7

New APIs and options 15

Performance 1

  • React cleans up more internal fields on unmount, reducing the impact of memory leaks that may exist in application code.

    18.0.0release notes

Behavior and default changes 9

  • State updates in promises, timeouts, native event handlers, and other events are now batched automatically, reducing re-renders.

    18.0.0upgrade guiderelease notes

  • option elements can have non-string children when a value is provided.

    18.0.0upgrade guiderelease notes

  • Components are now allowed to render undefined.

    18.0.0upgrade guiderelease notes

  • When server rendering suspends, it emits fallback HTML for the closest Suspense boundary and retries rendering on the client instead of erroring.

    18.0.0release notes

  • When server rendering suspends, it emits fallback HTML for the closest Suspense boundary and retries rendering the same content on the client instead of erroring.

    18.0.0release notes

  • React no longer warns about calling setState on an unmounted component.

    18.0.0release notes

  • In development, Strict Mode simulates unmounting and remounting components on first mount, restoring state and rerunning effects to surface issues.

    18.0.0upgrade guiderelease notes

  • Suspense is supported on the server; during a transition, already-visible content can remain visible while React renders suspended content.

    18.0.0upgrade guide

  • If a component suspends before it is fully added to the tree, React discards the incomplete tree and retries rendering after the asynchronous operation finishes.

    18.0.0release notes

Fixes and other changes 1

  • When a tree re-suspends and reverts to a fallback, React cleans up layout effects and recreates them when the boundary content appears again.

    18.0.0release notes

react 1733 changes

Breaking changes 12

Deprecations 1

New APIs and options 9

Performance 1

Behavior and default changes 9

Fixes and other changes 1