MioIsland/landing/node_modules/react-dom
xmqywx 5deeaffc8a refactor(plugins): remove JSON-based plugin system
Replace with native .bundle plugin architecture in next commits.
Old declarative system (themes/buddy/sound JSON) removed entirely.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 21:21:18 +08:00
..
cjs refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
client.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
client.react-server.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
index.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
LICENSE refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
package.json refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
profiling.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
profiling.react-server.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
react-dom.react-server.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
README.md refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
server.browser.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
server.bun.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
server.edge.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
server.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
server.node.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
server.react-server.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
static.browser.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
static.edge.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
static.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
static.node.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
static.react-server.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
test-utils.js refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08: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://react.dev/reference/react-dom

react-dom/client

See https://react.dev/reference/react-dom/client

react-dom/server

See https://react.dev/reference/react-dom/server