ReactDOM
lastmod 2026-11-10created 2023-12-082 edits
ReactDOM is the package that connects a React component tree to the browser DOM. It mounts an application onto a root element with createRoot (or the older render), draws children outside the parent DOM with createPortal, and attaches events to server-rendered HTML with hydrateRoot. It is separate from the react package, which holds component definitions and hooks, so the core is shared with other renderers such as React Native.