react
npmv19.2.8React 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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>
</>
);
}react vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| reactthis page | 152.8M | 82 | MIT | 1 month ago |
| react-dom | 143.7M | 47 | MIT | 1 day ago |
| react-style-singleton | 59.1M | 2 | MIT | 1 day ago |
| reselect | 44M | 1 | MIT | 1 day ago |
| next | 40.6M | 0 | MIT | 1 day ago |
| @testing-library/user-event | 35.3M | 4 | MIT | 1 day ago |
Used by
Popular packages that depend on react.
React package for working with the DOM.
No description provided.
Removes body scroll without content _shake_
Just create a single stylesheet...
High performance (de)compression in an 8kB package
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.
No description provided.
Selectors for Redux.
TypeScript execution environment and REPL for node.js, with source map support
The React Framework
Fire events the same way the user does
Minimal H(TTP) framework built for high performance and portability.
The official, opinionated, batteries-included toolset for efficient Redux development
Drawer component for React.
Drizzle ORM package for SQL databases
The React Native multithreading library
Standard navigation API for navigation libraries
Stringify any JavaScript value.
Provides access to a database using SQLite (https://www.sqlite.org/). The database is persisted across restarts of your app.
DevTools plugin helpers for Expo
Fastest SQLite for React Native (with node.js support)
Babel plugin for React Compiler.
Floating UI for the web
A framework for building native apps using React
Relationship graph
Dependencies (left) and dependents (right) of react.
Frequently installed together
TypeScript definitions for react
React package for working with the DOM.
A framework for building native apps using React
The Expo SDK
TypeScript definitions for react-dom
TypeScript definitions for node
Simple and complete React Native testing utilities that encourage good testing practices.
Tools for making advanced Metro bundler features work
Provides system information that remains constant throughout the lifetime of your app.
Error overlay for universal Expo apps.
A WebView specifically designed for Expo DOM components
React Native for Web
Release history
50 releases in the last two years, typically about 0 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.0.0-experimental-6c0e1047-20260908 | 1 day ago | 194 KB | MIT |
| 19.3.0-canary-6c0e1047-20260908 | 1 day ago | 175 KB | MIT |
| 19.3.0-canary-f1f7ed2a-20260904 | 2 days ago | 175 KB | MIT |
| 0.0.0-experimental-f1f7ed2a-20260904 | 2 days ago | 194 KB | MIT |
| 0.0.0-experimental-8425b691-20260904 | 5 days ago | 194 KB | MIT |
| 19.3.0-canary-8425b691-20260904 | 5 days ago | 175 KB | MIT |
| 0.0.0-experimental-d9f4e76b-20260903 | 6 days ago | 194 KB | MIT |
| 19.3.0-canary-d9f4e76b-20260903 | 6 days ago | 175 KB | MIT |
| 19.3.0-canary-f4e439e1-20260902 | 7 days ago | 175 KB | MIT |
| 0.0.0-experimental-f4e439e1-20260902 | 7 days ago | 194 KB | MIT |
| 19.3.0-canary-21c89c9f-20260901 | 8 days ago | 175 KB | MIT |
| 0.0.0-experimental-21c89c9f-20260901 | 8 days ago | 194 KB | MIT |
| 0.0.0-experimental-ff7445e6-20260831 | 9 days ago | 194 KB | MIT |
| 19.3.0-canary-ff7445e6-20260831 | 9 days ago | 175 KB | MIT |
| 0.0.0-experimental-2dc7da79-20260828 | 12 days ago | 194 KB | MIT |
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.
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.