React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.
Overview
React is a component-oriented JavaScript library aimed at interactive user interfaces for web and native environments. Developers describe each visual state as a function of data, and the runtime reconciles changes to the DOM or native tree efficiently when inputs change.
Components encapsulate markup, behavior, and state in JavaScript functions rather than separate template files. JSX syntax lets authors embed HTML-like structure beside logic, though JSX is optional. Smaller components compose into screens, pages, and larger applications while keeping state out of the raw document when desired.
The project supports gradual adoption: teams can add React to existing pages, start from quick-start examples, or scaffold full toolchains for new apps. Documentation on the website covers quick starts, tutorials, state management, advanced guides, and API references.
Interactivity flows from props and hooks that respond to user events such as typing in inputs. Examples on the site demonstrate conditional rendering, lists, and combined component trees. Community contribution happens through the public issue tracker and documented contribution guide.
Key features
- Declarative UI rendering
- Encapsulated stateful components
- JSX markup beside JavaScript logic
- Composable component hierarchies
- Hooks for interactivity and state
- Gradual adoption in existing sites
- Web and native UI targets
- Documented quick start and API guides
Use cases
- Building interactive single-page web apps
- Sharing UI logic across web and native stacks
- Structuring large frontends from small components
- Incrementally modernizing legacy web pages