Home / File/ ReactJSX.js — react Source File

ReactJSX.js — react Source File

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

Entity Profile

Dependency Diagram

graph LR
  bd4a0390_0a81_c991_9e46_fb6a4eb303f3["ReactJSX.js"]
  1bf5591f_27a1_c79f_853a_6242549e0e07["ReactJSXElement.js"]
  bd4a0390_0a81_c991_9e46_fb6a4eb303f3 --> 1bf5591f_27a1_c79f_853a_6242549e0e07
  541966e9_c9c6_423b_909d_7502d44146b3["jsxProd"]
  bd4a0390_0a81_c991_9e46_fb6a4eb303f3 --> 541966e9_c9c6_423b_909d_7502d44146b3
  5b04ce0e_675c_578c_bd77_960db71fbd34["jsxProdSignatureRunningInDevWithDynamicChildren"]
  bd4a0390_0a81_c991_9e46_fb6a4eb303f3 --> 5b04ce0e_675c_578c_bd77_960db71fbd34
  74cba079_befe_33de_79d9_e329478f8395["jsxProdSignatureRunningInDevWithStaticChildren"]
  bd4a0390_0a81_c991_9e46_fb6a4eb303f3 --> 74cba079_befe_33de_79d9_e329478f8395
  61e1102a_51ec_ae18_0071_31d1ba8c4fe5["jsxDEV"]
  bd4a0390_0a81_c991_9e46_fb6a4eb303f3 --> 61e1102a_51ec_ae18_0071_31d1ba8c4fe5
  e1e1de60_2be4_0643_45fb_e2c306735427["ReactSymbols"]
  bd4a0390_0a81_c991_9e46_fb6a4eb303f3 --> e1e1de60_2be4_0643_45fb_e2c306735427
  style bd4a0390_0a81_c991_9e46_fb6a4eb303f3 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 {REACT_FRAGMENT_TYPE} from 'shared/ReactSymbols';
import {
  jsxProd,
  jsxProdSignatureRunningInDevWithDynamicChildren,
  jsxProdSignatureRunningInDevWithStaticChildren,
  jsxDEV as _jsxDEV,
} from './ReactJSXElement';

const jsx: any = __DEV__
  ? jsxProdSignatureRunningInDevWithDynamicChildren
  : jsxProd;
// we may want to special case jsxs internally to take advantage of static children.
// for now we can ship identical prod functions
const jsxs: any = __DEV__
  ? jsxProdSignatureRunningInDevWithStaticChildren
  : jsxProd;

const jsxDEV: any = __DEV__ ? _jsxDEV : undefined;

export {REACT_FRAGMENT_TYPE as Fragment, jsx, jsxs, jsxDEV};

Domain

Frequently Asked Questions

What does ReactJSX.js do?
ReactJSX.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ReactJSX.js depend on?
ReactJSX.js imports 6 module(s): ReactJSXElement.js, ReactSymbols, jsxDEV, jsxProd, jsxProdSignatureRunningInDevWithDynamicChildren, jsxProdSignatureRunningInDevWithStaticChildren.
Where is ReactJSX.js in the architecture?
ReactJSX.js is located at packages/react/src/jsx/ReactJSX.js (domain: BabelCompiler, directory: packages/react/src/jsx).

Analyze Your Own Codebase

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

Try Supermodel Free