React: JavaScript library for building user interfaces
Component-based library using virtual DOM for efficient UI rendering.
Learn more about react
React is a JavaScript library for constructing user interface components using a declarative approach. It uses a virtual DOM abstraction to track changes and apply updates to the actual DOM, rendering only the components affected by data changes. The library supports component composition through JavaScript functions and classes, allowing developers to build encapsulated, reusable UI elements. React can render on the server using Node.js and also powers mobile applications through React Native, enabling code reuse across web and native platforms.
Declarative UI Rendering
Developers describe target UI states rather than writing imperative DOM manipulation code. React automatically reconciles changes through a virtual DOM diff algorithm, making state transitions predictable and reducing UI bugs.
Component-Based Architecture
Encapsulated components manage local state and compose into complex interfaces using JavaScript instead of template languages. Rich data flows through props while component logic remains reusable and testable in isolation.
Cross-Platform Rendering
Same component logic renders server-side via Node.js or as native mobile UI through React Native. Eliminates duplicate implementations across web and mobile platforms while maintaining platform-specific optimizations.
import React from 'react';
import { createRoot } from 'react-dom/client';
function Welcome({ name }) {
return <h1>Hello, {name}!</h1>;
}
const root = createRoot(document.getElementById('root'));
root.render(<Welcome name="World" />);React 19.2 ships new APIs for UI state management (<Activity>), effect events (useEffectEvent), and partial pre-rendering with resume APIs; useId now generates underscore-delimited IDs instead of colon-delimited.
- –Update code expecting colon-delimited useId output (e.g., 'R:0') to handle underscore format ('R_0') for SSR/hydration compatibility.
- –Adopt <Activity> to hide/restore component UI and state, useEffectEvent to extract non-reactive logic, or resume APIs for partial pre-rendering workflows.
Patch release fixing Owner Stacks compatibility with ES2015 function.name semantics; no breaking changes or new requirements.
- –Update to resolve Owner Stacks rendering issues when using ES2015 function.name in your components.
- –Release notes do not specify migration steps, security fixes, or other behavioral changes beyond this single bug fix.
React.act removed from production builds; useId format changed to «r123» (CSS-safe); HTML comment containers no longer supported.
- –Remove React.act calls from production code paths and update useId selectors from :r123: to «r123» format.
- –Replace HTML comment DOM containers with standard elements; leverage new captureOwnerStack API for dev tooling.
See how people are using react
Related Repositories
Discover similar tools and frameworks used by developers
astro
Static site generator with selective component hydration.
OpenCut
Timeline-based browser video editor with multi-track support.
lucide
Framework-agnostic SVG icons with native component packages.
bootstrap
Sass-based component library with responsive grid system.
ui
Copy-paste React components built on Radix and Tailwind.