Overview of Client React DOM APIs
The react-dom/client APIs are used to render React components in a browser environment. These APIs are typically invoked at the top level of an application to initialize the React component tree. While frameworks may handle this initialization for you, manual usage is required when building a React application from scratch.
Key APIs include:
createRoot: Used to create a root to display React components inside a browser DOM node.hydrateRoot: Used to display React components inside a browser DOM node that already contains HTML content generated byreact-dom/server.