React · Dive 02 of 14
The rest of the packages
Other plugs for the same socket
Dive 01 walked the floors that every React app stands on. The other 23 packages are where the building’s claims get tested. A renderer that draws to nothing proves the socket between the floors is real. DevTools makes the same design move for a different problem: one shared implementation, and a small pluggable piece for each place it runs.
React 02 · 1 of 13
The twenty-three you did not install
Dive 01 covered 18 of the 41 packages: the core runtime, the server and streaming packages, and the small developer tools. This dive covers the other 23, and they fall into five groups.
Five are alternate renderers, there to exercise the claim that the reconciler does not care what it draws to. Ten are DevTools: one implementation, plus shells for different hosts and ways of talking. Four are test infrastructure, what React uses to test React. Three are legacy, APIs at different stages of being retired. And one, react-flight-server-fb, is Meta’s internal binding for its own bundler.
Only eight of the 23 are published: react-art, react-test-renderer, react-markup (on the experimental channel only), jest-react, use-subscription, and three DevTools packages, react-devtools, -core and -inline. Their sizes are extreme. react-devtools-shared is about 53,000 lines that are not tests; use-subscription has one line of logic.
The ideaMost of these exist to test a claim the core makes
From the source
| Group | Count | Why it exists |
|---|---|---|
| Alternate renderers | 5 | To exercise the claim that the reconciler is host-agnostic |
| DevTools | 10 | One implementation plus shells for different hosts and transports |
| Test infrastructure | 4 | What React uses to test React |
| Legacy | 3 | APIs at different stages of being retired |
| Meta-internal | 1 | react-flight-server-fb, the internal-bundler Flight binding |
React 02 · 2 of 13
Five more plugs for one socket
Dive 01 ended on the socket: ReactFiberConfig, the host config, a module the reconciler imports and the build swaps for a real one. The DOM is one plug. Five more packages each bring another.
react-art draws vector graphics to Canvas or SVG. react-native-renderer drives native views through Fabric, React Native’s renderer. react-test-renderer renders to plain objects for snapshots. react-noop-renderer renders to plain objects with no host at all. And react-markup renders to a string of HTML, through Fizz rather than the fiber reconciler.
If you want to read one complete host config from end to end, read react-art’s. It is the smallest real renderer, three source files in all.
One number shows where the pressure on the socket really comes from. scripts/shared/inlinedHostConfigs.js lists 24 build targets, and 18 of them are variants of the DOM: browser, Node, Bun and edge, crossed with webpack, Turbopack, Parcel and ESM. The other six are markup, fabric, test, art, noop and custom.
The ideaEvery renderer is another plug in the same socket
From the source
| Package | Host config | Mode | Renders to |
|---|---|---|---|
react-art | ReactFiberConfigART.js | mutation | Canvas, SVG, VML through the ART library |
react-native-renderer | ReactFiberConfigFabric.js | persistence | Native views, through Fabric |
react-test-renderer | ReactFiberConfigTestHost.js | mutation | Plain objects, for snapshots |
react-noop-renderer | ReactFiberConfigNoop.js + variants | both | Plain objects, with no host at all |
react-markup | ReactFizzConfigMarkup.js | — | An HTML string. Fizz, not Fiber. |
React 02 · 3 of 13
Mend the house, or copy the street
When something changes, a renderer can apply it in one of two ways. The DOM, react-art and the test renderer use mutation: the changed node is edited in place, like mending one house on the street.
React Native’s Fabric uses persistence. Nothing is edited. Instead, React makes a new copy of the changed node and of every node above it, up to the root, like building a new copy of the street from the changed house upwards. The siblings that did not change are shared between the old tree and the new one, so the copy is only as long as the path to the root.
This is the reconciler’s biggest single branch. In this repo Fabric is the only production renderer that uses persistence, so the reconciler carries a whole second commit strategy for it.
You can see the split in what the reconciler calls at commit. On the DOM it calls commitUpdate, appendChild, insertBefore and removeChild. On Fabric it calls cloneInstance, then builds a new set of children with createContainerChildSet and appendChildToContainerChildSet, and swaps it in with replaceContainerChildren.
The ideaMutation edits in place; persistence copies up to the root
From the source
| DOM (mutation) | Fabric (persistence) |
|---|---|
commitUpdate | cloneInstance |
appendChild, insertBefore, removeChild | createContainerChildSet, appendChildToContainerChildSet, replaceContainerChildren |
React 02 · 4 of 13
A translator at the border
react-native-renderer is private, about 5,100 lines that are not tests, and its host config is ReactFiberConfigFabric.js, 973 lines. That config sets supportsPersistence = true and re-exports six of the WithNo* files from Dive 01, WithNoMutation among them, which is how the reconciler knows to take the persistence branch.
The config is about seven times smaller than the DOM’s, which is 6,818 lines. The hard work sits on the other side of the JSI boundary, in C++. This file translates calls across the border; it does no diffing and no layout.
Nearly half the package, 2,317 lines in legacy-events/, is the Responder system: the touch negotiation behind touchables and scroll views, onStartShouldSetResponder and its relatives. It is older than Fabric, and Fabric did not replace it.
Older material describes two React Native renderers, Paper (the original, in mutation mode) and Fabric. At this commit only Fabric is left. Commit 56922cf751, on 16 April 2026, “Delete Paper (legacy) renderer”, removed Paper, and the package’s only entry point is now fabric.js.
The ideaThe config translates; the real work is in C++
From the source
export * from 'react-reconciler/src/ReactFiberConfigWithNoMutation';
export * from 'react-reconciler/src/ReactFiberConfigWithNoHydration';
export * from 'react-reconciler/src/ReactFiberConfigWithNoScopes';
export * from 'react-reconciler/src/ReactFiberConfigWithNoTestSelectors';
export * from 'react-reconciler/src/ReactFiberConfigWithNoResources';
export * from 'react-reconciler/src/ReactFiberConfigWithNoSingletons';
…
export const supportsPersistence = true;React 02 · 5 of 13
A workshop with no tools
react-noop-renderer is private, 14 files, and its description reads “React package for testing the Fiber, Fizz and Flight reconcilers.” Its host is nothing at all. Where the DOM config creates an element, this one creates an object literal: an id, a type, an array of children, some text.
That makes it the proof that the socket is real. 81 files in the repo import it, and 66 of them are in react-reconciler. The reconciler’s correctness is checked against a host with no DOM, no layout and no events, so if a DOM assumption leaked across the seam, these tests would fail.
It covers every engine and both modes. It has entry points for Fizz and Flight as well as Fiber (ReactNoopServer.js, ReactNoopFlightServer.js, ReactNoopFlightClient.js), and it supports mutation and persistence, with …NoMutation and …NoPersistence variants so a test can pin one.
The ideaTests against a host with nothing in it keep the seam honest
From the source
const inst: Instance = {
id: instanceCounter++,
type: type,
children: [],
parent: -1,
text: shouldSetTextContent(type, props) ? computeText(…) : null,
prop: props.prop,
hidden: !!props.hidden,
context: hostContext,
};React 02 · 6 of 13
A second socket, and a plug being retired
react-markup renders Server Components to standalone HTML, for e-mail and feeds. It does no Client Components and no hydration, and its one export is the async experimental_renderToHTML.
Its config is a Fizz host config, not a fiber one: no fiber, no mutation flag, no commit phase. So React has two independent sockets, one for the fiber reconciler and one for Fizz, the streaming server renderer.
react-test-renderer is on its way out. Its README is titled “(DEPRECATED)”, and since React 19 calling create() logs a warning. The reason given is that it encourages tests that inspect React’s internals; Testing Library is the suggested replacement.
The ideaReact has two seams: one for Fiber, one for Fizz
React 02 · 7 of 13
One telescope, four mounts
Ten of the 23 packages are DevTools, and almost all of the code is in one of them. react-devtools-shared is the whole implementation, about 53,000 lines, and it is private.
The ones you can install are mounts for that one telescope. react-devtools is a standalone Electron app, 156 lines around -core, for React Native, webviews and Safari. react-devtools-core is the backend plus a standalone frontend, for renderer authors; React Native embeds it. react-devtools-inline embeds DevTools in a web page, for browser-based IDEs. The browser extension, react-devtools-extensions, ships to the web stores rather than npm.
The design is written down in packages/react-devtools/OVERVIEW.md. The frontend is the UI you see: the components tree and the Profiler. The backend runs in the same page as React and tells the frontend whenever React commits. The two talk over a bridge.
One directory name misleads. In react-devtools-shared/src/, backend/ really is the injected agent (agent.js, fiber/renderer.js), but frontend/ holds only types, hooks and utilities. The UI itself is in devtools/ (store.js, views/).
The ideaOne shared implementation, a thin shell per host
From the source
| Package | Published | What it is |
|---|---|---|
react-devtools-shared | no | The whole implementation, about 53,000 lines |
react-devtools | yes | Standalone Electron app, 156 lines around -core |
react-devtools-core | yes | Backend plus standalone frontend, for renderer authors |
react-devtools-inline | yes | Embeds DevTools in a web page, for browser-based IDEs |
react-devtools-extensions | no | The Chrome / Firefox / Edge extension (web stores, not npm) |
react-devtools-timeline | no | The timeline profiler |
-fusebox, -facade, -cdt-mcp, -shell | no | The odd names, two scenes on |
React 02 · 8 of 13
The speaking tube
The backend and the frontend always run in different contexts, and sometimes on different machines: a phone and a laptop, a page and an extension panel, an iframe and its parent. Yet one class, Bridge in react-devtools-shared/src/bridge.js, handles every combination, because it knows nothing about how messages travel.
It takes one object, a Wall, with two functions: listen to hear messages and send to send them. Think of it as a speaking tube between two rooms. The Bridge only ever talks into the tube; each DevTools package supplies its own tube for its own transport.
react-devtools-core uses a WebSocket, or a channel the caller provides. react-devtools-inline uses postMessage across the iframe boundary. The extension uses a port for the panel and window.postMessage for the content script. react-devtools-fusebox brings none at all; the React Native debugger injects one.
This is the host-config move from Dive 01 again: name the operations you need, take them as a parameter, and let each environment supply them. A new environment costs one small file.
The ideaName the operations, and let each host supply them
From the source
export type Wall = {
// A Wall may share its transport with unrelated or legacy messages, so the
// Bridge must refine incoming values at the boundary.
listen: (fn: (message: mixed) => void) => () => void,
send: (
event: string,
payload: mixed,
transferable?: $ReadOnlyArray<mixed>,
) => void,
};| Package | Its Wall |
|---|---|
react-devtools-core | WebSocket, or a caller-supplied channel |
react-devtools-inline | postMessage across the iframe boundary |
react-devtools-extensions | Extension port for the panel, window.postMessage for the content script |
react-devtools-fusebox | None built in; the React Native debugger injects one |
React 02 · 9 of 13
Five names that tell you nothing
Five packages are impossible to guess from their names.
react-devtools-fusebox: “Fusebox” is the codename for the React Native debugger built on Chrome DevTools. This package is the glue that mounts the shared DevTools panels inside it.react-devtools-facade: installs__REACT_DEVTOOLS_GLOBAL_HOOK__and exposes a small library for querying React’s state (roots, the tree, hooks) without the full backend.react-devtools-cdt-mcp: the facade’s first user. Import its/registerentry before React and it registers React tools, such asreact_get_component_tree, withchrome-devtools-mcp. It shows the component tree to an agent instead of a person.react-devtools-shell: a local harness, test apps to point DevTools at while changing-inlineor-shared.react-flight-server-fb: Meta’s own Flight binding for its internal bundler. Not the same thing asreact-server-dom-fb, which is a Fizz (HTML streaming) build.
The ideaIn this repo a package name is a codename until proven otherwise
React 02 · 10 of 13
The inspectors’ log book
Every unfamiliar helper in a React test comes from internal-test-utils: an internal act, and a family of helpers that wait on a log. waitFor, waitForAll, waitForPaint, waitForThrow, waitForDiscrete, and assertLog to check it.
That API shows how React tests concurrency. A test component writes to a log as it renders; the test asserts on the sequence of entries and then waits for a specific next one. Interruption and priority can only be tested if the moments React yields are visible, so the utilities make them visible as a log.
The other three are small. jest-react, published, has one matcher, unstable_toMatchRenderedOutput; it imports from the private internal-test-utils, which works because private packages are inlined at build time. dom-event-testing-library gives createEventTarget(node), whose .pointerdown(), .click() and .focus() each produce the full, realistic sequence of DOM events. react-suspense-test-utils has one function, waitForSuspense(fn), which tests cache-reading Suspense code with no renderer at all.
The ideaConcurrency is tested by asserting on a log
From the source
function Text({text}) {
Scheduler.log(text); // each render writes to the log
return text;
}
root.render(<><Text text="A" /><Text text="B" /></>);
await waitFor(['A']); // render until "A" is logged, then stop
// …do something urgent here, while B has not rendered yet…
await waitForAll(['B']); // let the rest finish
assertLog([]); // and nothing else happenedReact 02 · 11 of 13
Three ways to retire a resident
Three legacy packages show three ways to retire an API.
The loud way is react-test-renderer: a banner in the README, a warning at runtime since React 19, a docs page and named replacements, and still published. The forwarding way is use-subscription: its README sends you to use-sync-external-store, and the package is now a one-line wrapper around it that still supports React 16.8 to 19. The silent way is react-cache: no deprecation notice anywhere, just marked private and left out of the release list, with its implementation in a file named ReactCacheOld.js.
The pattern is about promises. An API that was always labelled experimental can be retired quietly; react-cache’s README always said not to use it in a real app. One that was recommended cannot: react-test-renderer has to leave with warnings and a way forward.
One package in the corner is not legacy at all. react-debug-tools is private and in active use: it re-runs a component with an instrumented dispatcher to recover its tree of hooks, custom hooks included. The hooks panel in DevTools comes from it.
The ideaThe “experimental” label is what lets an API leave quietly
From the source
use-subscription: the whole implementation (comments removed). Note the arguments swap places.useSubscription.js ↗import {useSyncExternalStore} from 'use-sync-external-store/shim';
export function useSubscription<Value>({
getCurrentValue,
subscribe,
}: {
getCurrentValue: () => Value,
subscribe: (callback: Function) => () => void,
}): Value {
return useSyncExternalStore(subscribe, getCurrentValue);
}| Strategy | Package | What it looks like |
|---|---|---|
| Loud deprecation | react-test-renderer | README banner, a runtime warning since React 19, a docs page, named replacements. Still published. |
| Forwarding shim | use-subscription | README points to use-sync-external-store; the package is a one-line wrapper. |
| Silent de-publish | react-cache | No notice. Marked private and left out of ReactVersions.js. |
React 02 · 12 of 13
How to read them
If you open these packages yourself, this order gets the most out of the fewest lines:
react-art/src/ReactFiberConfigART.js: the smallest complete host config.react-noop-renderer/src/createReactNoop.js: a host config with nothing under it. Then open any test inreact-reconciler/src/__tests__to see it used.internal-test-utils/ReactInternalTestUtils.js:waitForandassertLog, how concurrency is asserted.react-devtools-shared/src/bridge.jsandsrc/frontend/types.js: the Wall type explains the whole DevTools package split.packages/react-devtools/OVERVIEW.md: the clearest architecture document in the repo.
The ideaRead the smallest plug first, then the one with nothing behind it
React 02 · 13 of 13
What to keep
react-noop-rendereris the proof of the seam. The reconciler’s tests render to plain objects, so a leaked host assumption fails the build.- Mutation versus persistence is the reconciler’s biggest branch. Fabric is the production user of persistence; Paper was deleted in April 2026.
react-markupshows a second seam: a Fizz host config, with no fiber involved.- Ten DevTools packages, one implementation. The Wall (
listenandsend) lets one Bridge run over WebSockets,postMessageand extension ports. - React tests concurrency by asserting on a log (
waitFor,assertLog). - Three ways to retire an API: a loud deprecation, a forwarding shim, a silent de-publish. The “experimental” label is what makes the third possible.
Read from facebook/react at dcd4ec28a1 (react 19.3.0, 26 July 2026). Line numbers are from that commit.