Home / File/ ReactFizzComponentStack.js — react Source File

ReactFizzComponentStack.js — react Source File

Architecture documentation for ReactFizzComponentStack.js, a javascript file in the react codebase. 6 imports, 3 dependents.

File javascript BabelCompiler Validation 6 imports 3 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  ea40e69e_a03c_6c79_7161_71ac1cd3103c["ReactFizzComponentStack.js"]
  d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"]
  ea40e69e_a03c_6c79_7161_71ac1cd3103c --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07
  ebbd7451_c238_0c5d_d01e_21d7c2d60653["ReactLazy"]
  ea40e69e_a03c_6c79_7161_71ac1cd3103c --> ebbd7451_c238_0c5d_d01e_21d7c2d60653
  ee0b3c9c_9a89_ddf3_7d8a_b6e3d5961d75["ReactComponentStackFrame"]
  ea40e69e_a03c_6c79_7161_71ac1cd3103c --> ee0b3c9c_9a89_ddf3_7d8a_b6e3d5961d75
  e1e1de60_2be4_0643_45fb_e2c306735427["ReactSymbols"]
  ea40e69e_a03c_6c79_7161_71ac1cd3103c --> e1e1de60_2be4_0643_45fb_e2c306735427
  8344de1b_978c_be0f_eebd_38ccc4962a93["ReactFeatureFlags"]
  ea40e69e_a03c_6c79_7161_71ac1cd3103c --> 8344de1b_978c_be0f_eebd_38ccc4962a93
  f3c177af_2c49_dd70_e1c6_29ae3280aad1["ReactOwnerStackFrames"]
  ea40e69e_a03c_6c79_7161_71ac1cd3103c --> f3c177af_2c49_dd70_e1c6_29ae3280aad1
  48a5ff90_f97f_4d51_fd7e_aa4c6bf1487f["ReactFizzAsyncDispatcher.js"]
  48a5ff90_f97f_4d51_fd7e_aa4c6bf1487f --> ea40e69e_a03c_6c79_7161_71ac1cd3103c
  1b694821_5816_1762_7c98_f0727a09e732["ReactFizzServer.js"]
  1b694821_5816_1762_7c98_f0727a09e732 --> ea40e69e_a03c_6c79_7161_71ac1cd3103c
  0018c75e_7a57_c8d9_f3f4_1bff0ee0ea15["ReactFizzThenable.js"]
  0018c75e_7a57_c8d9_f3f4_1bff0ee0ea15 --> ea40e69e_a03c_6c79_7161_71ac1cd3103c
  style ea40e69e_a03c_6c79_7161_71ac1cd3103c 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
 */

import type {ReactComponentInfo, ReactAsyncInfo} from 'shared/ReactTypes';
import type {LazyComponent} from 'react/src/ReactLazy';

import {
  describeBuiltInComponentFrame,
  describeFunctionComponentFrame,
  describeClassComponentFrame,
  describeDebugInfoFrame,
} from 'shared/ReactComponentStackFrame';

import {
  REACT_FORWARD_REF_TYPE,
  REACT_MEMO_TYPE,
  REACT_LAZY_TYPE,
  REACT_SUSPENSE_LIST_TYPE,
  REACT_SUSPENSE_TYPE,
  REACT_VIEW_TRANSITION_TYPE,
} from 'shared/ReactSymbols';

import {enableViewTransition} from 'shared/ReactFeatureFlags';

import {formatOwnerStack} from 'shared/ReactOwnerStackFrames';

export type ComponentStackNode = {
  parent: null | ComponentStackNode,
  type:
    | symbol
    | string
    | Function
    | LazyComponent<any, any>
    | ReactComponentInfo
    | ReactAsyncInfo,
  owner?: null | ReactComponentInfo | ComponentStackNode, // DEV only
  stack?: null | string | Error, // DEV only
};

function shouldConstruct(Component: any) {
  return Component.prototype && Component.prototype.isReactComponent;
}

function describeComponentStackByType(
  type:
    | symbol
    | string
    | Function
    | LazyComponent<any, any>
    | ReactComponentInfo,
): string {
  if (typeof type === 'string') {
    return describeBuiltInComponentFrame(type);
  }
// ... (141 more lines)

Domain

Subdomains

Functions

Dependencies

  • ReactComponentStackFrame
  • ReactFeatureFlags
  • ReactLazy
  • ReactOwnerStackFrames
  • ReactSymbols
  • ReactTypes

Frequently Asked Questions

What does ReactFizzComponentStack.js do?
ReactFizzComponentStack.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 ReactFizzComponentStack.js?
ReactFizzComponentStack.js defines 1 function(s): shouldConstruct.
What does ReactFizzComponentStack.js depend on?
ReactFizzComponentStack.js imports 6 module(s): ReactComponentStackFrame, ReactFeatureFlags, ReactLazy, ReactOwnerStackFrames, ReactSymbols, ReactTypes.
What files import ReactFizzComponentStack.js?
ReactFizzComponentStack.js is imported by 3 file(s): ReactFizzAsyncDispatcher.js, ReactFizzServer.js, ReactFizzThenable.js.
Where is ReactFizzComponentStack.js in the architecture?
ReactFizzComponentStack.js is located at packages/react-server/src/ReactFizzComponentStack.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-server/src).

Analyze Your Own Codebase

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

Try Supermodel Free