zioinfo-mail/workspace/guardia-manager/frontend/node_modules/react-dom
DESKTOP-TKLFCPR\ython cfe2901a55 refactor(structure): consolidate all projects under workspace/
- itsm/    -> workspace/guardia-itsm/
- manager/ -> workspace/guardia-manager/
- app/     -> workspace/guardia-messenger/
- manual/  -> workspace/guardia-docs/

workspace/zioinfo-web/ unchanged.
git mv preserves full commit history.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 23:50:56 +09:00
..
cjs refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
umd refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
client.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
index.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
LICENSE refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
package.json refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
profiling.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
README.md refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
server.browser.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
server.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
server.node.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00
test-utils.js refactor(structure): consolidate all projects under workspace/ 2026-05-31 23:50:56 +09:00

react-dom

This package serves as the entry point to the DOM and server renderers for React. It is intended to be paired with the generic React package, which is shipped as react to npm.

Installation

npm install react react-dom

Usage

In the browser

import { createRoot } from 'react-dom/client';

function App() {
  return <div>Hello World</div>;
}

const root = createRoot(document.getElementById('root'));
root.render(<App />);

On the server

import { renderToPipeableStream } from 'react-dom/server';

function App() {
  return <div>Hello World</div>;
}

function handleRequest(res) {
  // ... in your server handler ...
  const stream = renderToPipeableStream(<App />, {
    onShellReady() {
      res.statusCode = 200;
      res.setHeader('Content-type', 'text/html');
      stream.pipe(res);
    },
    // ...
  });
}

API

react-dom

See https://reactjs.org/docs/react-dom.html

react-dom/client

See https://reactjs.org/docs/react-dom-client.html

react-dom/server

See https://reactjs.org/docs/react-dom-server.html