Home / File/ gating-use-before-decl.js — react Source File

gating-use-before-decl.js — react Source File

Architecture documentation for gating-use-before-decl.js, a javascript file in the react codebase. 2 imports, 0 dependents.

File javascript TestingUtilities Fixtures 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  e0ae93ce_5580_5464_5e71_1bf51d488bbe["gating-use-before-decl.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  e0ae93ce_5580_5464_5e71_1bf51d488bbe --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  e0ae93ce_5580_5464_5e71_1bf51d488bbe --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style e0ae93ce_5580_5464_5e71_1bf51d488bbe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @gating
import {memo} from 'react';
import {Stringify} from 'shared-runtime';

export default memo(Foo);
function Foo({prop1, prop2}) {
  'use memo';
  return <Stringify prop1={prop1} prop2={prop2} />;
}

export const FIXTURE_ENTRYPOINT = {
  fn: eval('Foo'),
  params: [{prop1: 1, prop2: 2}],
};

Subdomains

Functions

Dependencies

  • react
  • shared-runtime

Frequently Asked Questions

What does gating-use-before-decl.js do?
gating-use-before-decl.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 gating-use-before-decl.js?
gating-use-before-decl.js defines 1 function(s): Foo.
What does gating-use-before-decl.js depend on?
gating-use-before-decl.js imports 2 module(s): react, shared-runtime.
Where is gating-use-before-decl.js in the architecture?
gating-use-before-decl.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/gating/gating-use-before-decl.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/gating).

Analyze Your Own Codebase

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

Try Supermodel Free