Home / File/ constant-propagate-global-phis.js — react Source File

constant-propagate-global-phis.js — react Source File

Architecture documentation for constant-propagate-global-phis.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  7bffca1c_17ec_6018_2cef_4c72a22c18db["constant-propagate-global-phis.js"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  7bffca1c_17ec_6018_2cef_4c72a22c18db --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 7bffca1c_17ec_6018_2cef_4c72a22c18db fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {CONST_STRING0, CONST_STRING1, Text} from 'shared-runtime';

function useFoo() {
  'use no forget';
  return {tab: CONST_STRING1};
}

function Test() {
  const {tab} = useFoo();
  const currentTab = tab === CONST_STRING0 ? CONST_STRING0 : CONST_STRING1;

  return <Text value={currentTab} />;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Test,
  params: [],
  isComponent: true,
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does constant-propagate-global-phis.js do?
constant-propagate-global-phis.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in constant-propagate-global-phis.js?
constant-propagate-global-phis.js defines 2 function(s): Test, useFoo.
What does constant-propagate-global-phis.js depend on?
constant-propagate-global-phis.js imports 1 module(s): shared-runtime.
Where is constant-propagate-global-phis.js in the architecture?
constant-propagate-global-phis.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/constant-propagate-global-phis.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).

Analyze Your Own Codebase

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

Try Supermodel Free