Home / File/ ReactTypes.js — react Source File

ReactTypes.js — react Source File

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

File javascript BabelCompiler 1 imports 3 dependents

Entity Profile

Dependency Diagram

graph LR
  790f4fc6_487b_b503_14ee_da20fdae5896["ReactTypes.js"]
  83d2fbad_2242_aa75_e397_ad184684aed6["ReactSymbols.js"]
  790f4fc6_487b_b503_14ee_da20fdae5896 --> 83d2fbad_2242_aa75_e397_ad184684aed6
  8a03468f_f6e2_d5a3_fdef_e77ebca449c2["ReactFiber.js"]
  8a03468f_f6e2_d5a3_fdef_e77ebca449c2 --> 790f4fc6_487b_b503_14ee_da20fdae5896
  e2d659a0_137e_44c3_6d74_509023d250de["getComponentNameFromFiber.js"]
  e2d659a0_137e_44c3_6d74_509023d250de --> 790f4fc6_487b_b503_14ee_da20fdae5896
  9fe99972_6a36_3063_23f2_c02b74680e1a["ReactElementType.js"]
  9fe99972_6a36_3063_23f2_c02b74680e1a --> 790f4fc6_487b_b503_14ee_da20fdae5896
  style 790f4fc6_487b_b503_14ee_da20fdae5896 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 {ReactOptimisticKey} from './ReactSymbols';

export type {ReactOptimisticKey};

export type ReactKey = null | string | ReactOptimisticKey;

export type ReactNode =
  | React$Element<any>
  | ReactPortal
  | ReactText
  | ReactFragment
  | ReactProvider<any>
  | ReactConsumer<any>;

export type ReactEmpty = null | void | boolean;

export type ReactFragment = ReactEmpty | Iterable<React$Node>;

export type ReactNodeList = ReactEmpty | React$Node;

export type ReactText = string | number;

export type ReactProvider<T> = {
  $$typeof: symbol | number,
  type: ReactContext<T>,
  key: ReactKey,
  ref: null,
  props: {
    value: T,
    children?: ReactNodeList,
  },
};

export type ReactConsumerType<T> = {
  $$typeof: symbol | number,
  _context: ReactContext<T>,
};

export type ReactConsumer<T> = {
  $$typeof: symbol | number,
  type: ReactConsumerType<T>,
  key: ReactKey,
  ref: null,
  props: {
    children: (value: T) => ReactNodeList,
  },
};

export type ReactContext<T> = {
  $$typeof: symbol | number,
  Consumer: ReactConsumerType<T>,
// ... (371 more lines)

Domain

Dependencies

Frequently Asked Questions

What does ReactTypes.js do?
ReactTypes.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ReactTypes.js depend on?
ReactTypes.js imports 1 module(s): ReactSymbols.js.
What files import ReactTypes.js?
ReactTypes.js is imported by 3 file(s): ReactElementType.js, ReactFiber.js, getComponentNameFromFiber.js.
Where is ReactTypes.js in the architecture?
ReactTypes.js is located at packages/shared/ReactTypes.js (domain: BabelCompiler, directory: packages/shared).

Analyze Your Own Codebase

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

Try Supermodel Free