Home / File/ ReactNoopServer.js — react Source File

ReactNoopServer.js — react Source File

Architecture documentation for ReactNoopServer.js, a javascript file in the react codebase. 2 imports, 0 dependents.

File javascript BabelCompiler Validation 2 imports 4 functions

Entity Profile

Dependency Diagram

graph LR
  28e41e6d_18d4_8ff4_a469_8bef5f564113["ReactNoopServer.js"]
  d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"]
  28e41e6d_18d4_8ff4_a469_8bef5f564113 --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07
  ee837aa9_08dd_2a2a_c294_57ce59c3b5e4["react-server"]
  28e41e6d_18d4_8ff4_a469_8bef5f564113 --> ee837aa9_08dd_2a2a_c294_57ce59c3b5e4
  style 28e41e6d_18d4_8ff4_a469_8bef5f564113 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.
 *
 * @flow
 */

/**
 * This is a renderer of React that doesn't have a render target output.
 * It is useful to demonstrate the internals of the reconciler in isolation
 * and for testing semantics of reconciliation separate from the host
 * environment.
 */

import type {ReactNodeList} from 'shared/ReactTypes';

import ReactFizzServer from 'react-server';

type Instance = {
  type: string,
  children: Array<Instance | TextInstance | SuspenseInstance>,
  prop: any,
  hidden: boolean,
};

type TextInstance = {
  text: string,
  hidden: boolean,
};

type ActivityInstance = {
  children: Array<Instance | TextInstance | SuspenseInstance>,
};

type SuspenseInstance = {
  state: 'pending' | 'complete' | 'client-render',
  children: Array<Instance | TextInstance | SuspenseInstance>,
};

type Placeholder = {
  parent: Instance | SuspenseInstance,
  index: number,
};

type Segment = {
  children: null | Instance | TextInstance | SuspenseInstance,
};

type Destination = {
  root: null | Instance | TextInstance | SuspenseInstance,
  placeholders: Map<number, Placeholder>,
  segments: Map<number, Segment>,
  stack: Array<Segment | Instance | SuspenseInstance>,
};

type ResumableState = null;
type RenderState = null;
type HoistableState = null;
// ... (322 more lines)

Domain

Subdomains

Dependencies

  • ReactTypes
  • react-server

Frequently Asked Questions

What does ReactNoopServer.js do?
ReactNoopServer.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 ReactNoopServer.js?
ReactNoopServer.js defines 4 function(s): Options.onShellReady, ReactNoopServer.scheduleMicrotask, ReactNoopServer.scheduleWork, write.
What does ReactNoopServer.js depend on?
ReactNoopServer.js imports 2 module(s): ReactTypes, react-server.
Where is ReactNoopServer.js in the architecture?
ReactNoopServer.js is located at packages/react-noop-renderer/src/ReactNoopServer.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-noop-renderer/src).

Analyze Your Own Codebase

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

Try Supermodel Free