.art.fabric.test.noop.markupReactFiberConfig

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.

12 scenes · ←/→ to move
renderers5devtools10test kit4legacy3meta1on npm: 8 of 23

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
The twenty-three, and what they are for
GroupCountWhy it exists
Alternate renderers5To exercise the claim that the reconciler is host-agnostic
DevTools10One implementation plus shells for different hosts and transports
Test infrastructure4What React uses to test React
Legacy3APIs at different stages of being retired
Meta-internal1react-flight-server-fb, the internal-bundler Flight binding
react-artfabrictestnoopmarkupinlinedHostConfigs.js · 24 build targets18 × DOM: browser, node, bun, edge × bundlers6 × the rest: markup, fabric, test, art, noop, custom

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
The alternate renderers
PackageHost configModeRenders to
react-artReactFiberConfigART.jsmutationCanvas, SVG, VML through the ART library
react-native-rendererReactFiberConfigFabric.jspersistenceNative views, through Fabric
react-test-rendererReactFiberConfigTestHost.jsmutationPlain objects, for snapshots
react-noop-rendererReactFiberConfigNoop.js + variantsbothPlain objects, with no host at all
react-markupReactFizzConfigMarkup.js—An HTML string. Fizz, not Fiber.
mutationDOM · art · testrootparentsiblingchildpersistenceFabricrootparentchildsiblingroot′parent′child′the sibling is shared

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

Check yourselfA deep node changes in a persistence-mode renderer. What gets copied?
From the source
What the reconciler calls at commit, per mode
DOM (mutation)Fabric (persistence)
commitUpdatecloneInstance
appendChild, insertBefore, removeChildcreateContainerChildSet, appendChildToContainerChildSet, replaceContainerChildren
ReactFiberConfigDOM.js · 6,818ReactFiberConfigFabric.js · 973FabricconfigtranslatesJSIC++diffing · layout

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
How the Fabric config declares its mode (abridged: lines 166–171 and 480)ReactFiberConfigFabric.js:166–171 ↗
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-noop-renderer{ id: 0, type: 'div', children: [], parent: -1, text: null,}no DOM · no layout · no events66 of 81 importersare reconciler tests

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

Check yourselfWhy does the reconciler’s test suite render to plain objects instead of to a fake DOM like jsdom?
From the source
An “instance” in the noop renderer (abridged)createReactNoop.js:436–445 ↗
const inst: Instance = {
  id: instanceCounter++,
  type: type,
  children: [],
  parent: -1,
  text: shouldSetTextContent(type, props) ? computeText(…) : null,
  prop: props.prop,
  hidden: !!props.hidden,
  context: hostContext,
};
Fiber · ReactFiberConfigtestDEPRECATEDFizz · ReactFizzConfigMarkup<p>Your order…</p>HTML for e-mail and feeds

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

devtools-shared≈53,000 lines · privatereact-devtools-core-inline-extensions

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
The DevTools packages
PackagePublishedWhat it is
react-devtools-sharednoThe whole implementation, about 53,000 lines
react-devtoolsyesStandalone Electron app, 156 lines around -core
react-devtools-coreyesBackend plus standalone frontend, for renderer authors
react-devtools-inlineyesEmbeds DevTools in a web page, for browser-based IDEs
react-devtools-extensionsnoThe Chrome / Firefox / Edge extension (web stores, not npm)
react-devtools-timelinenoThe timeline profiler
-fusebox, -facade, -cdt-mcp, -shellnoThe odd names, two scenes on
backendbeside Reactfrontendtree · profilerWalllisten · sendWebSocketpostMessageportinjectedone Bridge · a Wall per package

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

Check yourselfDevTools has ten packages. How much code is in react-devtools, the one you install as an app?
From the source
The Wall: everything the Bridge knows about transporttypes.js:31–40 ↗
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,
};
Who supplies which Wall
PackageIts Wall
react-devtools-coreWebSocket, or a caller-supplied channel
react-devtools-inlinepostMessage across the iframe boundary
react-devtools-extensionsExtension port for the panel, window.postMessage for the content script
react-devtools-fuseboxNone built in; the React Native debugger injects one
-fuseboxthe RN debugger’s glue-facadethe global hook, queried-cdt-mcpthe tree, for an agent-shella harness for testingflight-server-fbMeta’s Flight binding

React 02 · 9 of 13

Five names that tell you nothing

Five packages are impossible to guess from their names.

  1. 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.
  2. 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.
  3. react-devtools-cdt-mcp: the facade’s first user. Import its /register entry before React and it registers React tools, such as react_get_component_tree, with chrome-devtools-mcp. It shows the component tree to an agent instead of a person.
  4. react-devtools-shell: a local harness, test apps to point DevTools at while changing -inline or -shared.
  5. react-flight-server-fb: Meta’s own Flight binding for its internal bundler. Not the same thing as react-server-dom-fb, which is a Fizz (HTML streaming) build.

The ideaIn this repo a package name is a codename until proven otherwise

Scheduler.logthe testlog: 'A'waitFor(['A'])— yield —log: 'B'waitForAll(['B'])assertLog([])

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
The shape of a concurrency testOur example, not 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 happened
(DEPRECATED)test-rendererlouduse-sync…use-subscriptionforwardingreact-cachesilent

React 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);
}
Three strategies
StrategyPackageWhat it looks like
Loud deprecationreact-test-rendererREADME banner, a runtime warning since React 19, a docs page, named replacements. Still published.
Forwarding shimuse-subscriptionREADME points to use-sync-external-store; the package is a one-line wrapper.
Silent de-publishreact-cacheNo notice. Marked private and left out of ReactVersions.js.
ReactFiberConfigART.js1createReactNoop.js2ReactInternalTestUtils.js3bridge.js · types.js4OVERVIEW.md5

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:

  1. react-art/src/ReactFiberConfigART.js: the smallest complete host config.
  2. react-noop-renderer/src/createReactNoop.js: a host config with nothing under it. Then open any test in react-reconciler/src/__tests__ to see it used.
  3. internal-test-utils/ReactInternalTestUtils.js: waitFor and assertLog, how concurrency is asserted.
  4. react-devtools-shared/src/bridge.js and src/frontend/types.js: the Wall type explains the whole DevTools package split.
  5. 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

.art.fabric.test.noop.markupReactFiberConfig

React 02 · 13 of 13

What to keep

  • react-noop-renderer is 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-markup shows a second seam: a Fizz host config, with no fiber involved.
  • Ten DevTools packages, one implementation. The Wall (listen and send) lets one Bridge run over WebSockets, postMessage and 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.

Dive 03: From JSX call site to element ↓