Home / File/ ReactWorkTags.js — react Source File

ReactWorkTags.js — react Source File

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

File javascript BabelCompiler 28 dependents

Entity Profile

Dependency Diagram

graph LR
  d3557f30_4fca_e30a_91c5_c23d4b8dba99["ReactWorkTags.js"]
  8a694f3e_c887_fb18_4515_e3e4488bb43e["ReactChildFiber.js"]
  8a694f3e_c887_fb18_4515_e3e4488bb43e --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  8a03468f_f6e2_d5a3_fdef_e77ebca449c2["ReactFiber.js"]
  8a03468f_f6e2_d5a3_fdef_e77ebca449c2 --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  ee850b36_fc0b_9bb2_5b69_58d705aef9a5["ReactFiberApplyGesture.js"]
  ee850b36_fc0b_9bb2_5b69_58d705aef9a5 --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  0be70812_cc0c_b210_f84f_8e61dd5f831c["ReactFiberBeginWork.js"]
  0be70812_cc0c_b210_f84f_8e61dd5f831c --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  8f5342bb_933e_6410_b584_cc120047394a["ReactFiberCommitEffects.js"]
  8f5342bb_933e_6410_b584_cc120047394a --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  d39520cc_fe89_c0bc_424d_91bccdb79a69["ReactFiberCommitHostEffects.js"]
  d39520cc_fe89_c0bc_424d_91bccdb79a69 --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  08bb6a7c_2c07_1880_07ef_82d9f5cf2d76["ReactFiberCommitViewTransitions.js"]
  08bb6a7c_2c07_1880_07ef_82d9f5cf2d76 --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  e0fbfbd5_47b0_a489_0b36_bbfad9245544["ReactFiberCommitWork.js"]
  e0fbfbd5_47b0_a489_0b36_bbfad9245544 --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  6b05669d_2f09_63a5_e79f_0afc195f25a3["ReactFiberCompleteWork.js"]
  6b05669d_2f09_63a5_e79f_0afc195f25a3 --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  7ae9fa3a_48d9_66c9_fa52_cf05d4024c2b["ReactFiberComponentStack.js"]
  7ae9fa3a_48d9_66c9_fa52_cf05d4024c2b --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  8dfed368_a2ce_03e8_73a7_410857344637["ReactFiberConcurrentUpdates.js"]
  8dfed368_a2ce_03e8_73a7_410857344637 --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  21a48769_5be6_7eac_e581_a4faa269674e["ReactFiberErrorLogger.js"]
  21a48769_5be6_7eac_e581_a4faa269674e --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  85d2c68c_7609_2c66_22fb_5f02e8a2e8fe["ReactFiberHooks.js"]
  85d2c68c_7609_2c66_22fb_5f02e8a2e8fe --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  da68ece0_17b1_3c98_d393_5c830eacd9b2["ReactFiberHotReloading.js"]
  da68ece0_17b1_3c98_d393_5c830eacd9b2 --> d3557f30_4fca_e30a_91c5_c23d4b8dba99
  style d3557f30_4fca_e30a_91c5_c23d4b8dba99 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
 */

export type WorkTag =
  | 0
  | 1
  | 2
  | 3
  | 4
  | 5
  | 6
  | 7
  | 8
  | 9
  | 10
  | 11
  | 12
  | 13
  | 14
  | 15
  | 16
  | 17
  | 18
  | 19
  | 20
  | 21
  | 22
  | 23
  | 24
  | 25
  | 26
  | 27
  | 28
  | 29
  | 30
  | 31;

export const FunctionComponent = 0;
export const ClassComponent = 1;
export const HostRoot = 3; // Root of a host tree. Could be nested inside another node.
export const HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
export const HostComponent = 5;
export const HostText = 6;
export const Fragment = 7;
export const Mode = 8;
export const ContextConsumer = 9;
export const ContextProvider = 10;
export const ForwardRef = 11;
export const Profiler = 12;
export const SuspenseComponent = 13;
export const MemoComponent = 14;
export const SimpleMemoComponent = 15;
export const LazyComponent = 16;
export const IncompleteClassComponent = 17;
export const DehydratedFragment = 18;
export const SuspenseListComponent = 19;
export const ScopeComponent = 21;
export const OffscreenComponent = 22;
export const LegacyHiddenComponent = 23;
export const CacheComponent = 24;
export const TracingMarkerComponent = 25;
export const HostHoistable = 26;
export const HostSingleton = 27;
export const IncompleteFunctionComponent = 28;
export const Throw = 29;
export const ViewTransitionComponent = 30;
export const ActivityComponent = 31;

Domain

Imported By

Frequently Asked Questions

What does ReactWorkTags.js do?
ReactWorkTags.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What files import ReactWorkTags.js?
ReactWorkTags.js is imported by 28 file(s): ReactChildFiber.js, ReactFiber.js, ReactFiberApplyGesture.js, ReactFiberBeginWork.js, ReactFiberCommitEffects.js, ReactFiberCommitHostEffects.js, ReactFiberCommitViewTransitions.js, ReactFiberCommitWork.js, and 20 more.
Where is ReactWorkTags.js in the architecture?
ReactWorkTags.js is located at packages/react-reconciler/src/ReactWorkTags.js (domain: BabelCompiler, 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