</>PackageGraphPackageGraph

react

npmv19.2.8

React is a JavaScript library for building user interfaces.

Safe to adopt

Yes — react scores well across adoption, maintenance, weight, supply chain, and licensing. 152.8M downloads per week and 82 known dependents. Last published 50 days ago. 50 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    152.8M downloads per week and 82 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 50 days ago. 50 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 168 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding react to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

168 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the react README.

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>
    </>
  );
}
Example truncated — see the full README.

react vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
reactthis page152.8M82MIT1 month ago
react-dom143.7M47MIT1 day ago
react-style-singleton59.1M2MIT1 day ago
reselect44M1MIT1 day ago
next40.6M0MIT1 day ago
@testing-library/user-event35.3M4MIT1 day ago

Used by

Popular packages that depend on react.

react-domnpm

React package for working with the DOM.

143.7M/wk47 dependentsMIT
@radix-ui/react-presencenpm

No description provided.

59.5M/wk2 dependentsMITTS
react-remove-scroll-barnpm

Removes body scroll without content _shake_

59.1M/wk1 dependentsMITTS
react-style-singletonnpm

Just create a single stylesheet...

59.1M/wk2 dependentsMITTS
fflatenpm

High performance (de)compression in an 8kB package

53.5M/wk1 dependentsMITTS
webpacknpm

Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

49.8M/wk29 dependentsMITTS
@radix-ui/react-dialognpm

No description provided.

48.3M/wk1 dependentsMITTS
reselectnpm

Selectors for Redux.

44M/wk1 dependentsMITTS
ts-nodenpm

TypeScript execution environment and REPL for node.js, with source map support

42.2M/wk38 dependentsMITTS
nextnpm

The React Framework

40.6M/wk0 dependentsMITTS
@testing-library/user-eventnpm

Fire events the same way the user does

35.3M/wk4 dependentsMITTS
h3npm

Minimal H(TTP) framework built for high performance and portability.

34.2M/wk8 dependentsMITTS
@reduxjs/toolkitnpm

The official, opinionated, batteries-included toolset for efficient Redux development

26.4M/wk2 dependentsMITTS
vaulnpm

Drawer component for React.

24.4M/wk1 dependentsMITTS
drizzle-ormnpm

Drizzle ORM package for SQL databases

19M/wk0 dependentsApache-2.0TS
react-native-workletsnpm

The React Native multithreading library

5.2M/wk4 dependentsMITTS
standard-navigationnpm

Standard navigation API for navigation libraries

4.7M/wk1 dependentsMITTS
pretty-formatnpm

Stringify any JavaScript value.

0/wk20 dependentsMITTS
expo-sqlitenpm

Provides access to a database using SQLite (https://www.sqlite.org/). The database is persisted across restarts of your app.

0/wk1 dependentsMITTS
@expo/devtoolsnpm

DevTools plugin helpers for Expo

0/wk1 dependentsMITTS
@op-engineering/op-sqlitenpm

Fastest SQLite for React Native (with node.js support)

0/wk1 dependentsMITTS
babel-plugin-react-compilernpm

Babel plugin for React Compiler.

0/wk2 dependentsMITTS
@floating-ui/domnpm

Floating UI for the web

0/wk2 dependentsMITTS
react-nativenpm

A framework for building native apps using React

0/wk30 dependentsMIT

Relationship graph

Dependencies (left) and dependents (right) of react.

Frequently installed together

Release history

50 releases in the last two years, typically about 0 days apart.

Recent versions of react
VersionPublishedSizeLicense
0.0.0-experimental-6c0e1047-202609081 day ago194 KBMIT
19.3.0-canary-6c0e1047-202609081 day ago175 KBMIT
19.3.0-canary-f1f7ed2a-202609042 days ago175 KBMIT
0.0.0-experimental-f1f7ed2a-202609042 days ago194 KBMIT
0.0.0-experimental-8425b691-202609045 days ago194 KBMIT
19.3.0-canary-8425b691-202609045 days ago175 KBMIT
0.0.0-experimental-d9f4e76b-202609036 days ago194 KBMIT
19.3.0-canary-d9f4e76b-202609036 days ago175 KBMIT
19.3.0-canary-f4e439e1-202609027 days ago175 KBMIT
0.0.0-experimental-f4e439e1-202609027 days ago194 KBMIT
19.3.0-canary-21c89c9f-202609018 days ago175 KBMIT
0.0.0-experimental-21c89c9f-202609018 days ago194 KBMIT
0.0.0-experimental-ff7445e6-202608319 days ago194 KBMIT
19.3.0-canary-ff7445e6-202608319 days ago175 KBMIT
0.0.0-experimental-2dc7da79-2026082812 days ago194 KBMIT

Overview

react is an npm package that react is a JavaScript library for building user interfaces. It is extremely widely used, with about 152.8M downloads per week and 82 known dependents in the graph. The latest version is 19.2.8, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need react is a JavaScript library for building user interfaces and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (152.8M weekly downloads).
  • Clear open-source license (MIT).
  • Zero runtime dependencies — minimal footprint.
  • Trusted by 82 other packages.

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use react?

Yes — react scores well across adoption, maintenance, weight, supply chain, and licensing. 152.8M downloads per week and 82 known dependents. Last published 50 days ago. 50 releases in the last 2 years.

How do I install react?

Run `npm install react` to add react to your npm project.

What license is react released under?

react is distributed under the MIT license.

How popular is react?

react has approximately 152,836,339 downloads per week and 82 known dependent packages.

Is react still maintained?

The most recent release of react (v19.2.8) was published 1 month ago.

Does react run install scripts?

No. react does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.