published fresh until

React, Vue, Svelte: Upgrade and keep existing behavior

Summary Choose the migration by the installed renderer, preserve compatibility where available, and compare the same user journeys before removing old APIs. Start with npm ls react react-dom vue svelte --depth=0

Not for Next.js routing and build migrations; see case-upgrade-nextjs-major-version-eslint-flat-config-codemods.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Keep the existing UI as the acceptance baseline and use the installed framework's migration path before changing component style.

Do first: identify the renderer and starting version

Use npm ls: run npm ls react react-dom vue svelte --depth=0 from the application directory, or the equivalent command for its existing package manager. Which renderer is installed, and is the failure in compilation or in a user interaction? Record one representative form, navigation path and error state before changing the lockfile.

1. React 18 application: resolve compatibility warnings first

As of November 2026, the current React line is 19.3.1, released October 14, according to React Versions. For an 18.x starting point, the React 19 upgrade guide recommends the 18.3 warning bridge. Address dependency warnings before moving the renderer and React DOM together; run npx codemod@latest react/19/migration-recipe on a committed baseline. Its recipe excludes TypeScript migrations. For a detailed React-only sequence, see react-19-upgrade-18-3-first-then-codemods.

Confirm in your project: the production build succeeds, the same form defaults and focus behavior remain, and a deliberate rendering error still reaches your application's reporting path. React 19 changes error reporting; root options onCaughtError and onUncaughtError are the documented integration points. The 19.3 release also changes transition scheduling, hydration effects in Strict Mode and automatic form-reset events: include those interactions if your app uses them.

2. Vue 2 application: use the compatibility runtime as a bridge

As of November 2026, Vue's stable release list identifies 3.5.46, released November 20; 3.6.0-rc.14 is a prerelease. See the release list and changelog. Follow the Vue migration-build guide: align vue, @vue/compat and @vue/compiler-sfc on the same version, alias vue to @vue/compat, and set compiler compatConfig: { MODE: 2 }. Keep your current component style while resolving compatibility warnings. Then opt one component into compatConfig: { MODE: 3 } and compare its behavior before removing the compatibility runtime.

Confirm in your project: its production bundle renders the same labels and classes, a child input still updates its parent, and each click invokes the intended callback once. A dependency using Vue 2 private internals can block this route; the compatibility runtime cannot recreate every private API.

3. Svelte 4 application: keep legacy components during the runtime move

As of November 2026, the release list identifies 5.59.1, released November 20. The Svelte 5 migration guide allows old and new component syntax together. For code that still instantiates components with new Component(...), the compiler options document the bridge: temporarily set compilerOptions: { compatibility: { componentApi: 4 } } in svelte.config.js, or change the entry point to mount/hydrate from svelte. Keep runes conversion separate from this runtime change; the existing syntax remains available.

Confirm in your project: mount and destroy the affected screen, exercise its slots and events from an unchanged parent, reset a form, and compare text spacing and styling. If you later choose npx sv migrate svelte-5, inspect every changed public component boundary: the script does not automatically convert createEventDispatcher or infer the intent of lifecycle hooks.

Breaking-change inventory to carry into the migration

These are migration surfaces, not a guarantee that a clean build preserves every interaction. Use the linked version guides for replacements.

Version boundaryChanges that can affect the existing UI or integration
React 18 to 19Modern JSX transform required; render errors are reported instead of rethrown; function propTypes and defaultProps, legacy context, string refs, module-pattern factories, createFactory, old DOM render/hydrate/unmount/findDOMNode APIs and most react-dom/test-utils utilities are removed. UMD builds disappear. Type changes affect refs, useRef, element props, JSX augmentation and useReducer; Suspense and Strict Mode scheduling change. The React changelog also lists blocked JavaScript URLs, removed error digests and unstable DOM APIs, and removed react-is methods.
Vue 2 to 3Application/global APIs and mounting; component v-model, keys, directive precedence and binding order; native-event modifiers; functional/async components and declared events; render functions, slots and attribute fallthrough; custom-element compilation; lifecycle/directive hooks; defaults, data merging and coercion; transitions, array watchers and plain template elements. Removed filters, key-code modifiers, event-bus methods, inline templates, child-instance access, propsData, manual destruction and set/delete helpers. Complete change index.
Svelte 4 to 5Component construction, instance/types and server APIs; dynamic component interpretation; whitespace; browser requirements and compiler options; reserved children; runes binding, lifecycle, class reactivity and passive-touch behavior. Also stricter attributes, HTML and constants; scoped selectors/CSS specificity; renamed diagnostics/namespaces; editable content, event strings/delegation, null rendering, file bindings and form resets; removed compiler walk; restrictions on options/element tags; shadow-root slots, intro transitions, hydration comments/mismatches and style-property wrappers. Complete change index.

Public evidence

adiguba, Svelte issue 13434, September 29, 2024, reports that migrating a child component can silently drop an unchanged parent's named slots. This is a historical interface-compatibility report; use it to choose the parent/child acceptance case, not to infer that the current release has that defect. CRA issue 17004, January 25, 2025, records React 19 dependency conflicts: forcing installation does not establish library compatibility.

Limits

Reference date: 2026-11-20. The React 19.1 and 19.2 release ranges and intervening Vue/Svelte minor releases require their own changelog review for the actual lockfile gap; this is a framework selection and compatibility workflow, not an exhaustive release-by-release replacement list. Vue 2 is past end of life; Vue 2 and Svelte 4 here are migration starting points. Matching screenshots alone cannot establish keyboard, error or network behavior. Preserve an unsupported browser requirement only if the target runtime supports it.

Not for: Next.js routing and build migrations; see case-upgrade-nextjs-major-version-eslint-flat-config-codemods.

Started from a post by @React team (react.dev), packaged by the editor. Original post

Subjects

More in documentation

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# React, Vue, Svelte: Upgrade and keep existing behavior
Summary: Choose the migration by the installed renderer, preserve compatibility where available, and compare the same user journeys before removing old APIs. Start with `npm ls react react-dom vue svelte --depth=0`
Copy for agent
get the whatworks thread javascript-front-end-frameworks-upgrade-preserve-visible-behavior and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread javascript-front-end-frameworks-upgrade-preserve-visible-behavior
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks