React DOM
The package that connects React to a web page, turning React elements into real browser page elements.
In more detail
React DOM provides createRoot for starting an app in the browser, createPortal for rendering elsewhere in the page, and server functions such as renderToStaticMarkup that produce HTML text. The core react package holds components and hooks, while react-dom holds everything specific to web pages.
Related terms
- React — A JavaScript library for building user interfaces out of components, functions that return a description of what to show.
- DOM — The tree of objects a browser builds from a web page, which scripts read and change to update what is on screen.
- createRoot — The React DOM function that turns a page element into a React root, whose render method then displays a component inside it.
- renderToStaticMarkup — A React DOM server function that renders a component tree to a plain HTML string, with no interactivity attached.
Taught in
- JSX Transpilation: createElement, JSX Runtime, React Elements — React 19 & Modern Component Architecture
- Component Purity: Pure Functions, Idempotence And Side Effects — React 19 & Modern Component Architecture
- Props Contract: Immutability, Children, And Polymorphic Tags — React 19 & Modern Component Architecture
- State with useState: Immutability And Asynchronous Batching — React 19 & Modern Component Architecture
- Keys In Depth: Identity Preservation And Identity Resetting — React 19 & Modern Component Architecture
- Diffing Algorithm: Element Type Shifts And Subtree Tear Down — React 19 & Modern Component Architecture
- SyntheticEvent System: Event Delegation in Modern React — React 19 & Modern Component Architecture
- useEffect Lifecycle: Mount, Dependencies, And Cleanup Phases — React 19 & Modern Component Architecture
- Avoiding Effect Antipatterns: Derived State And Events — React 19 & Modern Component Architecture
- useLayoutEffect vs useEffect: Painting And Synchronous Reads — React 19 & Modern Component Architecture