Sourcemap Explorer
Stack · npm package

react

React is a JavaScript library for building user interfaces.

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

About

React is a JavaScript library for building user interfaces.

react

What detecting react tells you about a site

Finding react in a bundle is the single strongest signal that you're looking at a component-driven single-page app or a hydrated server-rendered site. Because almost the entire modern front-end ecosystem assumes React as the substrate, its presence tells you the rest of the stack is likely React-flavoured: the router, the data layer, the form library and the UI kit will all be React-specific choices rather than framework-agnostic ones.

Why the exact react version matters

The major version is a hard fork in behaviour, so the exact number changes how you read the whole app. React 18 introduced concurrent rendering and automatic batching; React 19 added the `use` hook, Actions and built-in support for the compiler. A site on React 16/17 is a legacy or slow-to-upgrade codebase; a site on 19 is shipping the newest patterns. Regex-based detectors usually can't tell these apart — reading the bundled `react/package.json` version does.

react in a real-world stack

When you find react in a bundle, it rarely travels alone. react-dom (always, on the web), a router (react-router or the framework's own), and increasingly a state or data library such as @tanstack/react-query, zustand or redux.

Quick facts

Latest version19.2.8
LicenseMIT
Homepagereact.dev/
Installnpm install react
Direct dependencies0

This package powers React

The react package is the canonical implementation of React. Sourcemap Explorer uses this exact npm package as the framework-level fingerprint when it flags React on a page — both via the bundled node_modules/react/ source paths and via the embedded package.json inside the JavaScript sourcemap.

Read the React detection guide

How Sourcemap Explorer detects react

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

We catch react 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/ 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` 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/` — every match confirms the package is bundled. The matching `sourcesContent[i]` for `node_modules/react/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/package.json")) | $m.sourcesContent[.key] | fromjson | .version' bundle.js.map`. Sourcemap Explorer automates the same query in the popup.

Major releases of react

When each major version first landed. Major bumps are where breaking changes live, so this timeline is the fastest way to date the react 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.0.1
2011-10-26

Recent security advisories for react

The 2 most recent advisories affecting some versions of react, 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-2013-7035· 2020-09-04

    Cross-Site Scripting in react

  2. HIGHGHSA-hg79-j56m-fxgv· 2020-09-04

    Cross-Site Scripting in react

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 README

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

react

React is a JavaScript library for creating user interfaces.

The react package contains only the functionality necessary to define React components. It is typically used together with a React renderer like react-dom for the web, or react-native for the native environments.

Note: by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages. Don't forget to use the production build when deploying your application.

Usage

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

function Counter() {
  const [count, setCount] = useState(0);
  return (
    <>
      <h1>{count}</h1>
      <button onClick={() => setCount(count + 1)}>
        Increment
      </button>
    </>
  );
}

const root = createRoot(document.getElementById('root'));
root.render(<Counter />);

Documentation

See https://react.dev/

API

See https://react.dev/reference/react

FAQ

What is react used for?

React is a JavaScript library for building user interfaces.

How can I tell if a website is using react?

Open the page in Chrome with the Sourcemap Explorer extension installed and read the Stack tab. We catch `react` from two complementary signals: `node_modules/react/` 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 a website is running?

Read it straight from the site's JavaScript sourcemap. When a build ships source maps, the bundled `react/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/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?

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 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.

What is the relationship between react and React?

react is the canonical npm package for React. Sourcemap Explorer treats finding `react` in a bundle as the framework-level signal that React is on the page, and the page you're reading is the canonical Sourcemap Explorer entry for the package itself.

Does react have known security vulnerabilities?

2 recent advisories affecting some versions of react are 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. 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 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