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 initreact-dom 1966 changes
Breaking changes 13
ReactDOM warns and does not set an empty string for src or href, except on anchor tags.
The digest field is removed from the errorInfo argument passed to onRecoverableError.
ReactDOM now errors for javascript URLs used in src and href.
React 19 requires the new JSX transform for improvements including ref as a prop and JSX speed improvements.
Transitions in popstate are now synchronous, changing when updates associated with popstate are processed.
The package's test utilities are removed; import act from react instead, and calls to other test-utils functions will error.
Removed; replace it with DOM refs.
React no longer produces UMD builds, so developers loading ReactDOM through script tags should use an ESM-based CDN instead.
Removed; use root.unmount() instead.
ReactDOM removes unstable_createEventHandle; applications using this API must remove or replace those calls.
ReactDOM removes unstable_flushControlled; applications using this API must remove or replace those calls.
ReactDOM removes unstable_renderSubtreeIntoContainer; applications using this API must remove or replace those calls.
ReactDOM removes unstable_runWithPriority; applications using this API must remove or replace those calls.
Security 4
Adds nonce to rendered import maps.
Enables integration with the Trusted Types API.
Added more DoS mitigations to Server Actions.
Server Components were hardened.
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.
Recognizes credentialless as a boolean iframe attribute.
Adds fetchPriority support for module resources.
Adds support for the maskType SVG prop.
Adds an option to react-dom/server APIs for observing when a subtree defers to the browser.
Adds an option for observing subtrees that defer to the browser.
Adds support for the onFullscreenChange event.
Adds support for the onFullscreenError event.
The action props on form elements accept functions and use Actions to submit forms; successful submissions automatically reset uncontrolled components.
Adds a custom error handler for errors caught by an Error Boundary, supporting application error reporting.
Adds a custom error handler for uncaught errors, supporting application error reporting.
Stylesheet links can specify precedence so React manages their insertion order and ensures external stylesheets load before dependent content is revealed.
A new React DOM API lets applications establish a connection to a host in anticipation of a request.
A new React DOM API lets applications prefetch DNS to optimize resource loading.
A new React DOM API lets applications eagerly load and execute resources such as scripts.
A new React DOM API lets applications preload resources such as fonts and stylesheets.
A static rendering API waits for data to load before returning static HTML, and is designed to work with Web Streams.
A static rendering API waits for data to load before returning static HTML, and is designed to work with Node.js Streams.
A React DOM API lets you reset a form manually when needed.
A new hook reads the status of the parent form, making form information available to components without drilling props.
Performance 5
Avoids setting innerHTML when its value has not changed.
Batches updates from resize events until the next frame.
Tracks explicitly preloaded stylesheets to avoid unnecessary suspension.
Performance improvements were made to React Server Components.
React 19 adds pre-warming for suspended trees.
Behavior and default changes 9
Submit events now include submitter, and FormData uses its submitter parameter.
Transitions render independently instead of being entangled into one render, so a slow transition no longer holds up unrelated ones.
Type hardening may affect type checking when using React Server Components.
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.
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.
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.
Hydration mismatch reporting now logs a single message with a diff instead of multiple errors without mismatch details.
ReactDOM no longer emits a layout effect warning during server-side rendering.
Async scripts can be rendered anywhere in the component tree and are deduplicated so React loads and executes each script only once.
Fixes and other changes 15
For type="number" inputs, defaultValue now matches the behavior of other input types.
Preserves referrerPolicy in image preload headers.
Fixes false-positive hydration mismatches on nonce attributes.
Stops firing onAllReady after the shell has errored.
Fires onReset when forms are automatically reset.
Fixes a hang in react-dom/server on Deno.
Forwards the nonce option when preloading a module.
Updates HTML parser rules for the new select parser.
The synthetic toggle event now includes source.
Fixed missing FormData entries in Server Actions that regressed in 19.2.6.
React Server Components add more cycle protections.
Extra loop protection was added to React Server Functions.
Patched Promise cycles involving Server Functions.
React Server Component fixes were brought to Server Actions.
Patched toString behavior on Server Functions.
react-dom 1815 changes
Breaking changes 1
Server rendering falls back to client rendering when text does not match during hydration.
Deprecations 1
The server rendering API is deprecated.
New APIs and options 9
Added to the list of known ARIA attributes.
Creates a root for rendering or unmounting; use it instead of ReactDOM.render to enable React 18 features.
Hydrates a server-rendered application; use it instead of ReactDOM.hydrate with the new React DOM Server APIs to enable React 18 features.
Added to the list of known props.
Option accepted by createRoot and hydrateRoot to notify callers when React recovers from rendering or hydration errors, for example for logging.
Added as an event for video elements.
New server rendering API for streaming Suspense content in Node environments.
New server rendering API for streaming Suspense content in modern edge runtime environments.
React DOM adds selective hydration.
Behavior and default changes 2
Updates inside promises, timeouts, native event handlers, and other events are batched automatically, reducing re-renders.
Non-string children are allowed for option elements when a value is provided.
Fixes and other changes 2
Fixes the style not being applied.
Fixes the event not triggering when concurrent features are enabled.
react-dom 1746 changes
Breaking changes 14
All Capture events now use the browser capture phase.
All effects are cleaned up before any next effects run, and useEffect cleanup functions run asynchronously.
React removes event pooling, changing the lifecycle of event objects used by handlers.
React throws if a forwardRef component returns undefined.
Components created with forwardRef or memo that return undefined now throw.
React throws if a memo component returns undefined.
onFocus and onBlur use the browser focusin and focusout events.
React no longer emulates bubbling for the onScroll event.
Internals not needed by React Native Web are no longer exposed.
Existing root content is cleared before mounting.
Using act in the test renderer no longer flushes Suspense fallbacks.
The timeoutMs argument is removed from the experimental concurrent APIs.
The experimental unstable_discreteUpdates and unstable_flushDiscreteUpdates APIs are removed.
Cleanup functions returned by useEffect now run asynchronously.
Deprecations 2
React warns when no value is provided to Context.Provider.
The undocumented and misleading ReactTestUtils.SimulateNative API is deprecated.
New APIs and options 6
Keyboard event objects now include a code property.
The disableRemotePlayback property is supported for video elements.
The enterKeyHint property is supported for input elements.
Suspense gains unstable_expectedLoadTime for CPU-bound trees.
An experimental unstable_startTransition API is added.
An experimental unstable_useOpaqueIdentifier Hook is added.
Performance 1
React DOM memory usage is improved.
Behavior and default changes 16
React disables console during the repeated render in Strict Mode.
React cleans up all effects before running any next effects.
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.
onBlur uses the browser's focusout event.
onFocus uses the browser's focusin event.
React uses event delegation for onReset events.
React uses event delegation for onSubmit events.
onSubmit and onReset events use delegation.
onTouchMove listeners remain passive.
onTouchStart listeners remain passive.
onTouchStart, onTouchMove, and onWheel remain passive.
onWheel listeners remain passive.
ReactDOM.flushSync can be called during lifecycle methods, but React warns when it is used there.
Strict Mode double-renders components without Hooks too.
Strict Mode double-renders components without Hooks too, and disables console during repeated renders.
CPU Suspense uses the global render timeout.
Fixes and other changes 7
Fixed a false-positive warning when dangerouslySetInnerHTML is undefined.
Fixed event.relatedTarget being reported as undefined in Firefox.
Fixed rendering bailout for lazy components with defaultProps.
Fixed the movementX/Y polyfill with capture events.
Fixed onBeforeInput reporting an incorrect event.type.
Fixed setState hanging in development inside a closed iframe.
Fixed rendering into a shadow root.