unstale

npm / react-dom

react-dom

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

28 breaking4 security3 deprecations35 new APIs and options6 performance27 behavior and defaults24 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

react-dom 1966 changes

Breaking changes 13

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

    19.0.0upgrade guide

  • The digest field is removed from the errorInfo argument passed to onRecoverableError.

    19.0.0upgrade guide

  • ReactDOM now errors for javascript URLs used in src and href.

    19.0.0upgrade guide

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

    19.0.0upgrade guide

  • Transitions in popstate are now synchronous, changing when updates associated with popstate are processed.

    19.0.0upgrade guide

  • The package's test utilities are removed; import act from react instead, and calls to other test-utils functions will error.

    19.0.0upgrade guide

  • Removed; replace it with DOM refs.

    19.0.0upgrade guide

  • React no longer produces UMD builds, so developers loading ReactDOM through script tags should use an ESM-based CDN instead.

    19.0.0upgrade guide

  • Removed; use root.unmount() instead.

    19.0.0upgrade guide

  • ReactDOM removes unstable_createEventHandle; applications using this API must remove or replace those calls.

    19.0.0upgrade guide

  • ReactDOM removes unstable_flushControlled; applications using this API must remove or replace those calls.

    19.0.0upgrade guide

  • ReactDOM removes unstable_renderSubtreeIntoContainer; applications using this API must remove or replace those calls.

    19.0.0upgrade guide

  • ReactDOM removes unstable_runWithPriority; applications using this API must remove or replace those calls.

    19.0.0upgrade guide

Security 4

New APIs and options 20

  • Adds a react-dom API that resolves in the browser and errors during server rendering; use it inside a Suspense boundary to mark a subtree as browser-only without a recoverable error.

    19.3.0release notes

  • Recognizes credentialless as a boolean iframe attribute.

    19.3.0release notes

  • Adds fetchPriority support for module resources.

    19.3.0release notes

  • Adds support for the maskType SVG prop.

    19.3.0release notes

  • Adds an option to react-dom/server APIs for observing when a subtree defers to the browser.

    19.3.0release notes

  • Adds an option for observing subtrees that defer to the browser.

    19.3.0release notes

  • Adds support for the onFullscreenChange event.

    19.3.0release notes

  • Adds support for the onFullscreenError event.

    19.3.0release notes

  • The action props on form elements accept functions and use Actions to submit forms; successful submissions automatically reset uncontrolled components.

    19.0.0upgrade guide

  • Adds a custom error handler for errors caught by an Error Boundary, supporting application error reporting.

    19.0.0upgrade guideupgrade guide

  • Adds a custom error handler for uncaught errors, supporting application error reporting.

    19.0.0upgrade guideupgrade guide

  • Stylesheet links can specify precedence so React manages their insertion order and ensures external stylesheets load before dependent content is revealed.

    19.0.0upgrade guide

  • A new React DOM API lets applications establish a connection to a host in anticipation of a request.

    19.0.0upgrade guide

  • A new React DOM API lets applications prefetch DNS to optimize resource loading.

    19.0.0upgrade guide

  • A new React DOM API lets applications eagerly load and execute resources such as scripts.

    19.0.0upgrade guide

  • A new React DOM API lets applications preload resources such as fonts and stylesheets.

    19.0.0upgrade guide

  • A static rendering API waits for data to load before returning static HTML, and is designed to work with Web Streams.

    19.0.0upgrade guide

  • A static rendering API waits for data to load before returning static HTML, and is designed to work with Node.js Streams.

    19.0.0upgrade guide

  • A React DOM API lets you reset a form manually when needed.

    19.0.0upgrade guide

  • A new hook reads the status of the parent form, making form information available to components without drilling props.

    19.0.0upgrade guide

Performance 5

  • Avoids setting innerHTML when its value has not changed.

    19.3.0release notes

  • Batches updates from resize events until the next frame.

    19.3.0release notes

  • Tracks explicitly preloaded stylesheets to avoid unnecessary suspension.

    19.3.0release notes

  • Performance improvements were made to React Server Components.

    19.0.6, 19.2.6release notesrelease notes

  • React 19 adds pre-warming for suspended trees.

    19.0.0upgrade guide

Behavior and default changes 9

  • Submit events now include submitter, and FormData uses its submitter parameter.

    19.3.0release notes

  • Transitions render independently instead of being entangled into one render, so a slow transition no longer holds up unrelated ones.

    19.3.0release notes

  • Type hardening may affect type checking when using React Server Components.

    19.0.6release notes

  • React 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

  • Rendering title, link, and meta tags in components automatically hoists them to the document head, including in client-only apps, streaming SSR, and Server Components.

    19.0.0upgrade guide

  • Hydration skips unexpected tags in the head and body, and preserves stylesheets inserted by third-party scripts or browser extensions during an unrelated document 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 guide

  • ReactDOM no longer emits a layout effect warning during server-side rendering.

    19.0.0upgrade guide

  • 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 guide

Fixes and other changes 15

react-dom 1815 changes

Breaking changes 1

  • Server rendering falls back to client rendering when text does not match during hydration.

    18.0.0upgrade guide

Deprecations 1

New APIs and options 9

  • Added to the list of known ARIA attributes.

    18.0.0upgrade guide

  • Creates a root for rendering or unmounting; use it instead of ReactDOM.render to enable React 18 features.

    18.0.0upgrade guide

  • Hydrates a server-rendered application; use it instead of ReactDOM.hydrate with the new React DOM Server APIs to enable React 18 features.

    18.0.0upgrade guide

  • Added to the list of known props.

    18.0.0upgrade guide

  • Option accepted by createRoot and hydrateRoot to notify callers when React recovers from rendering or hydration errors, for example for logging.

    18.0.0upgrade guide

  • Added as an event for video elements.

    18.0.0upgrade guide

  • New server rendering API for streaming Suspense content in Node environments.

    18.0.0upgrade guide

  • New server rendering API for streaming Suspense content in modern edge runtime environments.

    18.0.0upgrade guide

  • React DOM adds selective hydration.

    18.0.0upgrade guide

Behavior and default changes 2

  • Updates inside promises, timeouts, native event handlers, and other events are batched automatically, reducing re-renders.

    18.0.0upgrade guide

  • Non-string children are allowed for option elements when a value is provided.

    18.0.0upgrade guide

Fixes and other changes 2

  • Fixes the style not being applied.

    18.0.0upgrade guide

  • Fixes the event not triggering when concurrent features are enabled.

    18.0.0upgrade guide

react-dom 1746 changes

Breaking changes 14

  • All Capture events now use the browser capture phase.

    17.0.0upgrade guiderelease notes

  • All effects are cleaned up before any next effects run, and useEffect cleanup functions run asynchronously.

    17.0.0release notes

  • React removes event pooling, changing the lifecycle of event objects used by handlers.

    17.0.0upgrade guiderelease notes

  • React throws if a forwardRef component returns undefined.

    17.0.0upgrade guide

  • Components created with forwardRef or memo that return undefined now throw.

    17.0.0release notes

  • React throws if a memo component returns undefined.

    17.0.0upgrade guide

  • onFocus and onBlur use the browser focusin and focusout events.

    17.0.0release notes

  • React no longer emulates bubbling for the onScroll event.

    17.0.0upgrade guiderelease notes

  • Internals not needed by React Native Web are no longer exposed.

    17.0.0release notes

  • Existing root content is cleared before mounting.

    17.0.0release notes

  • Using act in the test renderer no longer flushes Suspense fallbacks.

    17.0.0release notes

  • The timeoutMs argument is removed from the experimental concurrent APIs.

    17.0.0release notes

  • The experimental unstable_discreteUpdates and unstable_flushDiscreteUpdates APIs are removed.

    17.0.0release notes

  • Cleanup functions returned by useEffect now run asynchronously.

    17.0.0upgrade guiderelease notes

Deprecations 2

New APIs and options 6

Performance 1

Behavior and default changes 16

  • React disables console during the repeated render in Strict Mode.

    17.0.0upgrade guide

  • React cleans up all effects before running any next effects.

    17.0.0upgrade guide

  • React attaches event handlers to the root DOM container instead of document, helping avoid problems when integrating React with non-React code or multiple React versions.

    17.0.0upgrade guiderelease notes

  • onBlur uses the browser's focusout event.

    17.0.0upgrade guide

  • onFocus uses the browser's focusin event.

    17.0.0upgrade guide

  • React uses event delegation for onReset events.

    17.0.0upgrade guide

  • React uses event delegation for onSubmit events.

    17.0.0upgrade guide

  • onSubmit and onReset events use delegation.

    17.0.0release notes

  • onTouchMove listeners remain passive.

    17.0.0upgrade guide

  • onTouchStart listeners remain passive.

    17.0.0upgrade guide

  • onTouchStart, onTouchMove, and onWheel remain passive.

    17.0.0release notes

  • onWheel listeners remain passive.

    17.0.0upgrade guide

  • ReactDOM.flushSync can be called during lifecycle methods, but React warns when it is used there.

    17.0.0upgrade guiderelease notes

  • Strict Mode double-renders components without Hooks too.

    17.0.0upgrade guide

  • Strict Mode double-renders components without Hooks too, and disables console during repeated renders.

    17.0.0release notes

  • CPU Suspense uses the global render timeout.

    17.0.0release notes

Fixes and other changes 7

  • Fixed a false-positive warning when dangerouslySetInnerHTML is undefined.

    17.0.0release notes

  • Fixed event.relatedTarget being reported as undefined in Firefox.

    17.0.0release notes

  • Fixed rendering bailout for lazy components with defaultProps.

    17.0.0release notes

  • Fixed the movementX/Y polyfill with capture events.

    17.0.0release notes

  • Fixed onBeforeInput reporting an incorrect event.type.

    17.0.0release notes

  • Fixed setState hanging in development inside a closed iframe.

    17.0.0release notes

  • Fixed rendering into a shadow root.

    17.0.0release notes