Home / File/ getComponentNameFromFiber.js — react Source File

getComponentNameFromFiber.js — react Source File

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

File javascript BabelCompiler Validation 7 imports 3 dependents 3 functions

Entity Profile

Dependency Diagram

graph LR
  e2d659a0_137e_44c3_6d74_509023d250de["getComponentNameFromFiber.js"]
  6b9f5caa_fb13_3d3c_2f60_ad3c4f58371f["ReactInternalTypes.js"]
  e2d659a0_137e_44c3_6d74_509023d250de --> 6b9f5caa_fb13_3d3c_2f60_ad3c4f58371f
  790f4fc6_487b_b503_14ee_da20fdae5896["ReactTypes.js"]
  e2d659a0_137e_44c3_6d74_509023d250de --> 790f4fc6_487b_b503_14ee_da20fdae5896
  d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"]
  e2d659a0_137e_44c3_6d74_509023d250de --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07
  8344de1b_978c_be0f_eebd_38ccc4962a93["ReactFeatureFlags"]
  e2d659a0_137e_44c3_6d74_509023d250de --> 8344de1b_978c_be0f_eebd_38ccc4962a93
  f8f61929_42ba_4030_bc4f_a1c5484f5f32["ReactWorkTags"]
  e2d659a0_137e_44c3_6d74_509023d250de --> f8f61929_42ba_4030_bc4f_a1c5484f5f32
  3c38cd62_f628_0c7b_096c_856305caeada["getComponentNameFromType"]
  e2d659a0_137e_44c3_6d74_509023d250de --> 3c38cd62_f628_0c7b_096c_856305caeada
  e1e1de60_2be4_0643_45fb_e2c306735427["ReactSymbols"]
  e2d659a0_137e_44c3_6d74_509023d250de --> e1e1de60_2be4_0643_45fb_e2c306735427
  39c2d339_1422_a702_78f7_1997d8d72c29["ReactFiberClassUpdateQueue.js"]
  39c2d339_1422_a702_78f7_1997d8d72c29 --> e2d659a0_137e_44c3_6d74_509023d250de
  d7440987_975b_87e1_1856_1f2dfc018509["ReactFiberPerformanceTrack.js"]
  d7440987_975b_87e1_1856_1f2dfc018509 --> e2d659a0_137e_44c3_6d74_509023d250de
  e054b9c7_41f1_c7f7_97bb_98b6a445e94b["ReactProfilerTimer.js"]
  e054b9c7_41f1_c7f7_97bb_98b6a445e94b --> e2d659a0_137e_44c3_6d74_509023d250de
  style e2d659a0_137e_44c3_6d74_509023d250de 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 {ReactContext, ReactConsumerType} from 'shared/ReactTypes';
import type {Fiber} from './ReactInternalTypes';

import {
  disableLegacyMode,
  enableLegacyHidden,
  enableViewTransition,
} from 'shared/ReactFeatureFlags';

import {
  FunctionComponent,
  ClassComponent,
  HostRoot,
  HostPortal,
  HostComponent,
  HostHoistable,
  HostSingleton,
  HostText,
  Fragment,
  Mode,
  ContextConsumer,
  ContextProvider,
  ForwardRef,
  Profiler,
  SuspenseComponent,
  MemoComponent,
  SimpleMemoComponent,
  LazyComponent,
  IncompleteClassComponent,
  IncompleteFunctionComponent,
  DehydratedFragment,
  SuspenseListComponent,
  ScopeComponent,
  OffscreenComponent,
  LegacyHiddenComponent,
  CacheComponent,
  TracingMarkerComponent,
  Throw,
  ViewTransitionComponent,
  ActivityComponent,
} from 'react-reconciler/src/ReactWorkTags';
import getComponentNameFromType from 'shared/getComponentNameFromType';
import {REACT_STRICT_MODE_TYPE} from 'shared/ReactSymbols';
import type {ReactComponentInfo} from '../../shared/ReactTypes';

// Keep in sync with shared/getComponentNameFromType
function getWrappedName(
  outerType: mixed,
  innerType: any,
  wrapperName: string,
): string {
// ... (127 more lines)

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does getComponentNameFromFiber.js do?
getComponentNameFromFiber.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 getComponentNameFromFiber.js?
getComponentNameFromFiber.js defines 3 function(s): getComponentNameFromOwner, getContextName, getWrappedName.
What does getComponentNameFromFiber.js depend on?
getComponentNameFromFiber.js imports 7 module(s): ReactFeatureFlags, ReactInternalTypes.js, ReactSymbols, ReactTypes, ReactTypes.js, ReactWorkTags, getComponentNameFromType.
What files import getComponentNameFromFiber.js?
getComponentNameFromFiber.js is imported by 3 file(s): ReactFiberClassUpdateQueue.js, ReactFiberPerformanceTrack.js, ReactProfilerTimer.js.
Where is getComponentNameFromFiber.js in the architecture?
getComponentNameFromFiber.js is located at packages/react-reconciler/src/getComponentNameFromFiber.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-reconciler/src).

Analyze Your Own Codebase

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

Try Supermodel Free