Sourcemap Explorer
Stack · npm package

react-dom

React package for working with the DOM.

latest 19.2.8· MIT· 2,853 versions publishedView on npm

About

React package for working with the DOM.

react

What detecting react-dom tells you about a site

react-dom is the renderer that pins React to the browser, so its presence confirms a genuine web React app rather than React Native, Ink or another custom renderer. Seeing react-dom/client (the React 18+ entry point) versus the old react-dom render path is a quick read on how recently the rendering bootstrap was written.

Why the exact react-dom version matters

react-dom's version tracks react's lock-step, and a mismatch between the two is a real-world bug source. Reading the exact bundled react-dom version tells you whether the site is on the createRoot/hydrateRoot API (18+) or the legacy ReactDOM.render path, which affects hydration behaviour, Suspense support and streaming SSR.

react-dom in a real-world stack

When you find react-dom in a bundle, it rarely travels alone. react (always — the two version numbers should match), and a framework like Next.js or Remix that owns the hydration entry point.

Quick facts

Latest version19.2.8
LicenseMIT
Homepagereact.dev/
Installnpm install react-dom
Direct dependencies1
Peer dependenciesreact

Common pairings

Packages this one expects to find in the same project. Each is also a Sourcemap Explorer detection target.

What react-dom pulls in

react-dom declares 1 direct dependency — each one also rides into any bundle that ships react-dom, so they are detection targets too. Reading them is a quick way to understand the package's real footprint .

scheduler

How Sourcemap Explorer detects react-dom

react-dom ships as v19.2.8, published 2026-07-21 and carries 1 direct dependency, 1 peer dependency (react), 2,853 versions on the registry. Those exact numbers are the footprint Sourcemap Explorer matches when react-dom rides inside a deployed bundle — here is how the detection works.

We catch react-dom from two complementary signals: bundled source paths and the embedded package.json. Modern bundlers (webpack, Vite, esbuild, Rollup, Turbopack) preserve the original node_modules/react-dom/ paths inside the JavaScript sourcemap's sources[] array — that's the canonical signal. When the matching package.json is also captured in sourcesContent[], we read the exact version field — patch number included. No regex guessing, no version inference.

  1. 1

    Confirm the site exposes sourcemaps

    In DevTools Network, check the response headers of any application script for `SourceMap` or `X-SourceMap`. Failing that, fetch the script's last 4 KB and look for a `//# sourceMappingURL=` comment — that map is where the `react-dom` paths live.

  2. 2

    Find the package in the bundle

    Open DevTools → Network → reload. Click any application script and look at its sourcemap. Inside, search `sources[]` for entries matching `node_modules/react-dom/` — every match confirms the package is bundled. The matching `sourcesContent[i]` for `node_modules/react-dom/package.json` gives you the exact installed version.

  3. 3

    Read the version directly from package.json

    Run `jq -r '. as $m | $m.sources | to_entries[] | select(.value | endswith("node_modules/react-dom/package.json")) | $m.sourcesContent[.key] | fromjson | .version' bundle.js.map`. Sourcemap Explorer automates the same query in the popup.

Major releases of react-dom

When each major version first landed. Major bumps are where breaking changes live, so this timeline is the fastest way to date the react-dom version a site actually ships against the ecosystem.

Major
First release
Date
v19
19.0.0
2024-12-05
v18
18.0.0
2022-03-29
v17
17.0.0
2020-10-20
v16
16.0.0
2017-09-26
v15
15.0.0
2016-04-07
v0
0.1.0
2014-05-06

Recent security advisories for react-dom

The 1 most recent advisories affecting some versions of react-dom, aggregated from OSV.dev (GitHub Advisory + CVE data). A listing here doesn't mean the version a given site ships is affected — each advisory applies to a specific version range. Sourcemap Explorer reads the exact bundled version so you can check it against these ranges.

  1. MODERATECVE-2018-6341· 2019-01-04

    Cross-Site Scripting in react-dom

Recent versions

Version
Released
19.2.8
2026-07-21
19.2.7
2026-06-01
19.2.6
2026-05-06
19.2.5
2026-04-08
19.2.4
2026-01-26
19.2.3
2025-12-11
19.2.2
2025-12-11
19.2.1
2025-12-03

react-dom README

Live mirror of the GitHub README, for reference. Updated whenever the repo's default branch changes.

React · GitHub license npm version (Runtime) Build and Test (Compiler) TypeScript PRs Welcome

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • Learn Once, Write Anywhere: We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code. React can also render on the server using Node and power mobile apps using React Native.

Learn how to use React in your project.

Installation

React has been designed for gradual adoption from the start, and you can use as little or as much React as you need:

Documentation

You can find the React documentation on the website.

Check out the Getting Started page for a quick overview.

The documentation is divided into several sections:

You can improve it by sending pull requests to this repository.

Examples

We have several examples on the website. Here is the first one to get you started:

import { createRoot } from 'react-dom/client';

function HelloMessage({ name }) {
  return <div>Hello {name}</div>;
}

const root = createRoot(document.getElementById('container'));
root.render(<HelloMessage name="Taylor" />);

This example will render "Hello Taylor" into a container on the page.

You'll notice that we used an HTML-like syntax; we call it JSX. JSX is not required to use React, but it makes code more readable, and writing it feels like writing HTML.

Contributing

The main purpose of this repository is to continue evolving React core, making it faster and easier to use. Development of React happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving React.

Code of Conduct

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React.

Good First Issues

To help you get your feet wet and get you familiar with our contribution process, we have a list of good first issues that contain bugs that have a relatively limited scope. This is a great place to get started.

License

React is MIT licensed.

FAQ

What is react-dom used for?

React package for working with the DOM.

How can I tell if a website is using react-dom?

Open the page in Chrome with the Sourcemap Explorer extension installed and read the Stack tab. We catch `react-dom` from two complementary signals: `node_modules/react-dom/` paths inside the JavaScript sourcemap, and the embedded `package.json` we read for exact-version detection. Without the extension you can do the same lookup manually in DevTools — the steps are listed in the "How Sourcemap Explorer detects" section above.

How do I find out which version of react-dom a website is running?

Read it straight from the site's JavaScript sourcemap. When a build ships source maps, the bundled `react-dom/package.json` carries the exact `version` string — Sourcemap Explorer extracts it in one click on the Stack tab, and you can do it by hand in DevTools by opening the `.map` file and searching for `node_modules/react-dom/package.json`. That is far more reliable than inferring the version from an asset-hash or a `?ver=` query string, which is all surface-level detectors have to go on. The current npm release is 19.2.8, but real deployments frequently run an older pinned version — which is exactly why reading the bundled number matters.

What is the latest version of react-dom?

19.2.8, as published on the npm registry. The "Recent versions" table on this page lists the most recent 8 releases with their release dates. Sourcemap Explorer reports the version actually bundled into a site, which can lag the latest release by months on real-world deployments.

Is react-dom actively maintained?

Very actively maintained — the last release shipped within the past three months. The last published release was 2026-07-21. Source code: https://github.com/react/react.

Does react-dom have known security vulnerabilities?

1 recent advisory affecting some versions of react-dom is listed in the "Recent security advisories" section above, aggregated from OSV.dev (GitHub Advisory + CVE data). Whether a particular site is exposed depends entirely on the exact version it ships — each advisory applies to a specific version range, not to the package as a whole. That is why the precise bundled version matters: Sourcemap Explorer reads the version a site actually runs, so you can check it against the affected ranges instead of assuming the latest release is what's deployed.

Where can I read more?

Project homepage: https://react.dev/. Source code: https://github.com/react/react. Published on npm: https://www.npmjs.com/package/react-dom. Licensed as MIT.

Keep reading on Sourcemap Explorer

Detected by Sourcemap Explorer

When a bundle ships sourcemaps, we read the embedded package.json for react-dom and report the precise version (the registry's latest is v19.2.8, published 2026-07-21; the bundled copy is often older). Without sourcemaps, an import / require in the page's scripts is enough to flag it.

Install free on Chrome