React
In-depth entryby Meta Open Source / React team · Library · also known as React.js, ReactJS
Component-based JavaScript library for building user interfaces, created at Meta, with hooks, a declarative rendering model and server components
Overview
React is an open-source JavaScript library for building user interfaces, created at Facebook in 2013 and developed by Meta's React team together with outside contributors under the MIT license. Interfaces are composed from components, functions that return a description of the UI (usually written in JSX) for a given state; React reconciles those descriptions against the actual DOM and updates only what changed. Hooks provide state, effects, context and memoization inside function components.
React itself is deliberately limited to rendering and state; routing, data fetching, styling and build tooling come from the surrounding ecosystem. Current practice pairs it with a framework such as Next.js for server rendering and routing, or with Vite for client-only applications, and with styling systems such as Tailwind CSS and component collections such as shadcn/ui. React Server Components, stabilized in React 19, let parts of a tree render on the server and ship no client JavaScript, and the React Compiler automates memoization that previously required manual hooks. React Native applies the same model to iOS and Android.
React's position makes it the largest front-end ecosystem by libraries, tutorials and hiring pool, which is a practical advantage for long-lived projects. Its drawbacks are the number of decisions left to the developer, the churn in recommended patterns (class components to hooks to server components), bundle sizes that depend heavily on the chosen stack, and the learning curve of server-versus-client boundaries in modern frameworks. Performance is adequate for most applications but requires attention to re-render behavior in complex trees.
Capabilities
- Declarative component model with JSX
- Hooks for state, effects and context
- Virtual DOM reconciliation and concurrent rendering
- React Server Components and streaming
- React Compiler for automatic memoization
- Shared model with React Native for mobile
- Suspense for data loading and code splitting
Typical workflows
- Build a single-page application with Vite and a client router
- Render on the server with Next.js and hydrate on the client
- Assemble UI from Tailwind CSS and shadcn/ui components
- Share components between web and React Native
Strengths
- Largest front-end ecosystem and community
- Stable core API with long support
- Server components reduce client JavaScript
- MIT license
Limitations
- Routing, data fetching and styling are left to the ecosystem
- Pattern churn across major versions
- Server/client component boundaries add complexity
- Bundle size depends on the chosen stack
Prerequisites
- Node.js or Bun with a bundler or framework
Who it is for
- Front-end developers
- Full-stack teams using Next.js
- Mobile developers using React Native
Alternatives & comparison
Next.js is not a competitor but the most common framework built on React; comparing them is choosing between the library alone and a full-stack wrapper. Vite is the build tool most often used for React without a framework. SwiftUI is Apple's declarative UI framework and the closest analogue for native Apple applications, where React would require React Native.
- Next.js
React framework from Vercel for full-stack web applications with file-based routing, server components, server-side rendering, static generation and API route handlers
Open sourceOpen source - shadcn/ui
Collection of accessible React components built on Radix primitives and Tailwind CSS that are copied into a project's source rather than installed as a dependency
Open sourceOpen source - SwiftUI
Apple's declarative UI framework for building interfaces in Swift that run across iOS, iPadOS, macOS, watchOS, tvOS and visionOS
ProprietaryFree - Vite
Front-end build tool and development server that serves native ES modules during development and bundles for production, with a plugin API shared by many frameworks
Open sourceOpen source
Sources & verification
Primary sources consulted for this record. Claims are tied to the fields each source supports; the automated link checker re-verifies every URL on a schedule.
- Licensehttps://github.com/react/react/blob/main/LICENSEchecked Nov 1, 2026
Supports: license_spdx
- Official documentationchecked Nov 1, 2026
- Official sitechecked Nov 1, 2026
- Repositoryreact/reactchecked Nov 1, 2026
https://github.com/react/react
Supports: repo_url, source_model
Repository moved from facebook/react to react/react
- Confidence
- High
- Reviewed
- Nov 1, 2026
- Links
- Verified · Nov 2, 2026
Spotted an error?
More in Web frameworks & UI
FastAPI
Sebastián Ramírez (tiangolo) and FastAPI contributors · API development & tooling
Python web framework for building HTTP APIs from type-annotated functions, with automatic validation through Pydantic and generated OpenAPI documentation
Node.js
OpenJS Foundation · Programming languages & runtimes
Server-side JavaScript runtime built on the V8 engine, governed by the OpenJS Foundation, with npm as its package ecosystem
TypeScript
Microsoft · Programming languages & runtimes
Statically typed superset of JavaScript from Microsoft that compiles to plain JavaScript and powers editor tooling across the web ecosystem
Express
OpenJS Foundation · Web frameworks & UI
Minimal, unopinionated web framework for Node.js with routing and middleware, the long-standing default for HTTP servers in the Node ecosystem
Vercel
Vercel Inc. · Cloud & hosting providers
Front-end cloud from the makers of Next.js that deploys web applications from git with preview environments, serverless and edge functions and a global CDN
shadcn/ui
shadcn · Web frameworks & UI
Collection of accessible React components built on Radix primitives and Tailwind CSS that are copied into a project's source rather than installed as a dependency