Platform teams rarely struggle to bump a version. They struggle with the questions around it: who uses this package, what breaks if it moves, and what has to move first. We took one real upgrade, Backstage itself from React 18 to React 19, and answered those questions from the code, the lockfile and the npm registry.
Backstage's own code is ready for React 19; its dependencies aren't
- Who depends on React: 237 workspaces. 60 install React 18.3.1 directly.
- Wave 0 is upstream: 55 published Backstage packages declare
react: ^17 || ^18. No adopter can move to 19 until Backstage widens those ranges. - Third-party blockers: 26 installed packages refuse React 19. 11 are fixed by a version bump, and 6 of those are majors. 15 have no React 19 release at all, including all of Material UI v4, react-beautiful-dnd and react-json-view.
- The real runtime break: Material UI v4 calls
ReactDOM.findDOMNode, which React 19 removed, inside everyButtonBaseandTooltip. About 545 Backstage files import it. Backstage's own MUI-to-BUI codemods are the way out. - Backstage's own code is nearly ready: a naive search finds 3
ReactDOM.rendercalls, but all 3 sit behind acreateRootcheck. A structural rule finds 0. Only 4 test files need a codemod.
So the code is the easy part. What holds the upgrade back is peer ranges and one end-of-life UI library, and neither shows up in a search of your own source.
One real upgrade, four questions, every answer graded
We pinned backstage/backstage at commit 39f85f35 (November 9, 2026) and planned the move from React 18.3.1 to React 19. Four questions:
- Who depends on React, directly or indirectly, and how do they use it?
- What breaks if we upgrade?
- What else must be upgraded first, and in what order?
- Which changes can codemods automate?
Installed versions and React peer ranges come from yarn.lock, and following the lockfile shows which workspace pulls each blocker in. For every blocker we asked the npm registry for the newest release whose peer range allows React 19. Code questions are ast-grep searches on the source, run in Codemod Grep and linked below so you can rerun them.
Every answer is marked confirmed (checked against source or the live npm registry), potential (a known React 19 change that may or may not bite) or unknown.
1. React reaches 237 workspaces, often through packages nobody declared
| Finding | Status |
|---|---|
| 237 workspaces, 4,062 lockfile entries | confirmed |
| React 18.3.1 used by 60 workspaces | confirmed |
Other copies: 17.0.2 (Yarn's CLI plugins), 19.1.1 (Storybook docs addon), react-dom 16.14.0
(pulled in by | confirmed |
| 146 third-party packages declare a peer dependency on React | confirmed |
| confirmed |

Direct versus indirect matters here. react-beautiful-dnd is not in any Backstage package.json, but @backstage/core-components pulls it in through @material-table/core, and core-components is a dependency of 39 packages. react-side-effect arrives the same way through react-helmet. A blocker you never declared still blocks you.
2. The break that matters is inside Material UI v4, not Backstage's code
| What | Where | Status |
|---|---|---|
MUI v4 calls ReactDOM.findDOMNode, removed in React 19 | @material-ui/core 4.12.4: useIsFocusVisible (every button), Tooltip, ButtonBase, 16 files in all. Backstage's ErrorBoundary test already expects a findDOMNode warning on React 18 | confirmed |
| Install fails or warns on 55 Backstage peer ranges and 26 third-party ones | Lockfile peers | confirmed |
act imported from react-dom/test-utils | 4 test files in scaffolder, scaffolder-react and core-components (Grep search) | confirmed |
ReactDOM.render | 3 calls, all guarded by 'createRoot' in ReactDOM, so none breaks (Grep search) | confirmed |
ApiProvider.propTypes is silently ignored in 19 | core-app-api | potential |
Types: global JSX namespace (310 uses in 172 files), useRef<T>() with no argument (7 files) | Type check only, no runtime effect | potential |
| String refs | None | confirmed |
| Behavior changes inside the 15 packages with no React 19 release | node_modules | unknown |

The ReactDOM.render row shows why searching for the removed API is not enough. A text search finds 3 hits. Reading them shows each one is the fallback branch of a createRoot check, written so the same code runs on React 17 and 18. This ast-grep rule keeps only calls that are not inside such a check:
id: unguarded-reactdom-render
language: tsx
rule:
pattern: ReactDOM.render($ELEMENT, $ROOT)
not:
inside:
kind: if_statement
has:
field: condition
regex: createRoot
stopBy: endIt finds 0 in Backstage (TypeScript run, TSX run) and 1 in a positive control. ast-grep parses .ts and .tsx with different grammars, so run the rule once with language: typescript and once with language: tsx.
The pattern matches one spelling of the call. Code that writes import { render } from 'react-dom' or names the default import something else (ReactDom, RD) needs its own pattern, so check how your repos import react-dom before you trust a zero.
3. Five waves, and Backstage itself has to move first
Peer ranges come from the lockfile. We checked each blocker against the npm registry on November 10, 2026 for the newest release whose peer range allows React 19.
| Wave | What | Why |
|---|---|---|
| 0 | Backstage widens the React peer range on its 55 published packages | Upstream. Adopters are blocked until this ships |
| 1 | Patch and minor bumps: | Same API, React 19 allowed |
| 2 | Major bumps: | Breaking changes; each needs its own review |
| 3 | Replace what never supports 19: all of MUI v4, | No release allows React 19 |
| 4 | React 19 itself, with the codemods below | Everything above has landed |
Wave 3 is the long pole. MUI v4 is end of life, so the path is Backstage's own move to its BUI component library.
4. Codemods exist for every code change except two type-only fixes
| Change | Codemod in the Codemod registry | Backstage hits |
|---|---|---|
act from react-dom/test-utils to react | react-19-replace-act-import | 4 files |
ReactDOM.render to createRoot | react-19-replace-reactdom-render | 0 needed (already guarded) |
| All React 19 codemods in sequence | react-19-migration-recipe | Runs the two above |
| MUI v4 to BUI |
| About 545 files |
Global JSX namespace, useRef argument | None in the registry yet | 172 + 7 files |
The Backstage team publishes about 700 codemods under @backstage in the Codemod registry, including recipes for each Backstage release.
A version-bump bot tells you the build broke, not why or what to fix first
We did not run Dependabot or Renovate on this repo. Going by how they work, a bot opens a pull request that bumps react to 19 in each package.json, and CI fails or Yarn prints peer warnings. That is useful, but it answers none of the four questions: which code uses React, that MUI v4 breaks at runtime, which blockers have a fixed release, what order to upgrade in, or which changes a codemod can make.
The two fit together. The analysis above sets the order, and a bot or a codemod campaign carries out each wave.
Grep answered every code question in seconds and matched the ground truth
The code questions run as structural searches on grep.codemod.com, against the same Backstage commit:
| Question | Query | Grep result | Ground truth |
|---|---|---|---|
Every ReactDOM.render call | Pattern ReactDOM.render($A, $B), TypeScript | 3 | |
| Unguarded calls | The YAML rule above, once per language | 0 | |
act from test-utils | Pattern import {$$$A} from 'react-dom/test-utils' | 4 |

Each came back within seconds and matched a local run exactly. The dependency questions (installed versions, peer ranges, transitive chains, fixed releases) came from the lockfile and the npm registry, not from code search.
The goal is one query that answers all four questions across every repo
Today Grep answers the code questions in this study: structural searches over pinned snapshots of many repos, with exact counts. In an organization's own workspace it also lists the versions each repo has installed. The rest (peer ranges, which blockers have a fixed release, the order of the waves) took a lockfile parser, registry lookups and reading code by hand. The goal is one query that answers all four questions across every repo in an organization.
That needs building blocks ordinary code search doesn't have:
- Calls bound to a package, not a name.
import { render } from 'react-dom', a renamed default import and a re-export through a local file all reach the same function. Search should follow the imports and find every call that really resolves toreact-dom'srender, at the version installed in that workspace. - What the target version breaks. A catalog of what each release removes or changes, linked to the calls that hit it, so "what breaks" points at files and lines instead of a changelog.
- Blockers from version constraints. Which installed packages refuse the target version, which have a release that accepts it and which never will, including the ones that only arrive through another dependency.
- An upgrade order across repos. Waves like the ones above, worked out from those constraints, with the codemods that apply to each wave.
- Evidence you can check. Every answer marked confirmed, potential or unknown and pinned to a commit, with the repos and files that weren't analyzed listed instead of counted as clean.
Each of these needs its own index (lockfiles and workspaces, symbol resolution across files and packages, version constraints), and each has to stay correct as code keeps changing. That is the hard part, and it's what turns a one-off analysis like this one into a query anyone can rerun.
Run the same searches on your own code
Every Grep link above works on any public repo. Open one, swap backstage/backstage for your repo and run it. The codemods in section 4 are in the Codemod registry, starting with react-19-migration-recipe.