{"library":"react-dom","title":"React DOM","description":"react-dom is the entry point for React applications when rendering to the DOM. It provides DOM-specific methods needed to manage and update the browser's DOM. The current stable version is 19.2.5. It receives frequent patch releases, often in sync with the `react` package and other related tools.","language":"javascript","status":"active","last_verified":"Sat Apr 18","install":{"commands":["npm install react-dom"],"cli":null},"imports":["import { createRoot } from 'react-dom/client'","import { hydrateRoot } from 'react-dom/client'","import ReactDOM from 'react-dom'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { createRoot } from 'react-dom/client';\nimport React from 'react';\n\nfunction App() {\n  return <h1>Hello, React 19!</h1>;\n}\n\nconst container = document.getElementById('root');\nif (container) {\n  const root = createRoot(container);\n  root.render(<App />);\n} else {\n  console.error('Root element not found in the DOM.');\n}","lang":"typescript","description":"Demonstrates how to render a basic React component into a DOM element using `createRoot`, the recommended method for React 18+ applications.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}