React
Also known as: React.js, ReactJS
Open-source JavaScript library from Meta for building user interfaces out of reusable components that update efficiently when data changes.
React is a JavaScript library for building user interfaces from components, self-contained pieces that combine markup, logic and state. Developers describe what the interface should look like for a given state, usually in JSX, a syntax that mixes HTML-like tags with JavaScript, and React updates the page when the state changes. Rather than rewriting the whole Document Object Model, it compares a lightweight representation of the interface with the previous one and applies only the needed changes. It is open source under the MIT License.
Facebook engineer Jordan Walke created React, which was first used in Facebook's News Feed and then on Instagram before being released as open source in May 2013. Its declarative, one-way data flow contrasted with the two-way binding common in earlier frameworks and influenced later designs. React Native, released in 2015, applies the same model to mobile apps. Hooks, introduced in 2019, let function components manage state and side effects. React was relicensed from a BSD license with a patent clause to MIT in 2017 after community objections.
React became one of the most widely used tools for building single-page applications and the core of frameworks such as Next.js, which underpins stacks like Create T3 App. Its component model encourages reuse and resembles functional programming ideas, with interfaces treated as functions of state. Critics point to large JavaScript bundles, frequent shifts in recommended patterns and complexity for simple sites, and accessibility depends on developers producing semantic markup.
Key points
- React builds interfaces from reusable components that render based on state.
- Jordan Walke created React at Facebook, which released it as open source in 2013.
- Hooks, introduced in 2019, let function components manage state and side effects.
- React Native applies the same component model to mobile apps.
Related entries
JavaScript
High-level programming language of the web, created at Netscape in 1995, that runs in every major browser and on servers through runtimes like Node.js.
Document Object Model
Programming interface that represents a web page as a tree of objects, letting scripts read and change its content, structure and style.
Single-Page Application
Web application that loads a single HTML page and then updates its content with JavaScript instead of loading fresh pages from the server.
TypeScript
Programming language developed by Microsoft that adds optional static types to JavaScript and compiles to plain JavaScript for any runtime.
Vite
Front-end build tool and development server, created by Evan You, that uses native browser modules for fast startup and near-instant updates.
Create T3 App
Command-line tool that scaffolds full-stack TypeScript web applications using the T3 Stack of Next.js, tRPC, Tailwind CSS and related libraries.
Node.js
Open-source JavaScript runtime built on Google's V8 engine that runs JavaScript outside the browser using an event-driven, non-blocking model.
Functional Programming
Programming paradigm that builds software by composing pure functions, treating computation as evaluating expressions rather than changing state.
Referenced by
Other entries that discuss or point to React.