Home / File/ server.node.js — react Source File

server.node.js — react Source File

Architecture documentation for server.node.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript BabelCompiler Validation 1 imports 6 functions

Entity Profile

Dependency Diagram

graph LR
  3635af8b_2d11_9a1f_6002_a7084ecae812["server.node.js"]
  0b5d77d6_fa00_515b_1198_0f2d2642dc21["ReactVersion"]
  3635af8b_2d11_9a1f_6002_a7084ecae812 --> 0b5d77d6_fa00_515b_1198_0f2d2642dc21
  style 3635af8b_2d11_9a1f_6002_a7084ecae812 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

// This file is only used for tests.
// It lazily loads the implementation so that we get the correct set of host configs.

import ReactVersion from 'shared/ReactVersion';
export {ReactVersion as version};

export function renderToString() {
  return require('./src/server/ReactDOMLegacyServerNode').renderToString.apply(
    this,
    arguments,
  );
}
export function renderToStaticMarkup() {
  return require('./src/server/ReactDOMLegacyServerNode').renderToStaticMarkup.apply(
    this,
    arguments,
  );
}

export function renderToPipeableStream() {
  return require('./src/server/react-dom-server.node').renderToPipeableStream.apply(
    this,
    arguments,
  );
}

export function resumeToPipeableStream() {
  return require('./src/server/react-dom-server.node').resumeToPipeableStream.apply(
    this,
    arguments,
  );
}

export function renderToReadableStream() {
  return require('./src/server/react-dom-server.node').renderToReadableStream.apply(
    this,
    arguments,
  );
}

export function resume() {
  return require('./src/server/react-dom-server.node').resume.apply(
    this,
    arguments,
  );
}

Domain

Subdomains

Dependencies

  • ReactVersion

Frequently Asked Questions

What does server.node.js do?
server.node.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in server.node.js?
server.node.js defines 6 function(s): renderToPipeableStream, renderToReadableStream, renderToStaticMarkup, renderToString, resume, resumeToPipeableStream.
What does server.node.js depend on?
server.node.js imports 1 module(s): ReactVersion.
Where is server.node.js in the architecture?
server.node.js is located at packages/react-dom/server.node.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-dom).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free