rdesign/frontend/node_modules/react-dom
Jeff Emmett 80f1e96e6b Fix frontend build: type errors, SDK handling, docker context
- Use jq to cleanly remove encryptid SDK from package.json in Docker
- Fix TypeScript strict mode errors in dashboard and assistant
- Add .dockerignore to exclude node_modules from build context
- Use project root as Docker build context for frontend
- Fix Traefik routing: separate frontend/api/studio paths

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 02:21:52 +00:00
..
cjs Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
LICENSE Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
README.md Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
client.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
client.react-server.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
index.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
package.json Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
profiling.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
profiling.react-server.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
react-dom.react-server.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
server.browser.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
server.bun.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
server.edge.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
server.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
server.node.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
server.react-server.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
static.browser.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
static.edge.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
static.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
static.node.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
static.react-server.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00
test-utils.js Fix frontend build: type errors, SDK handling, docker context 2026-03-24 02:21:52 +00:00

README.md

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