Home / File/ hoisting-reassigned-twice-let-declaration.js — react Source File

hoisting-reassigned-twice-let-declaration.js — react Source File

Architecture documentation for hoisting-reassigned-twice-let-declaration.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  395978c6_d915_b43a_9bf4_92b82707beae["hoisting-reassigned-twice-let-declaration.js"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  395978c6_d915_b43a_9bf4_92b82707beae --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 395978c6_d915_b43a_9bf4_92b82707beae fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {CONST_NUMBER0, CONST_NUMBER1, Stringify} from 'shared-runtime';

function useHook({cond}) {
  'use memo';
  const getX = () => x;

  let x = CONST_NUMBER0;
  if (cond) {
    x += CONST_NUMBER1;
    x = Math.min(x, 100);
  }
  return <Stringify getX={getX} shouldInvokeFns={true} />;
}

export const FIXTURE_ENTRYPOINT = {
  fn: useHook,
  params: [{cond: true}],
  sequentialRenders: [{cond: true}, {cond: true}, {cond: false}],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does hoisting-reassigned-twice-let-declaration.js do?
hoisting-reassigned-twice-let-declaration.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 hoisting-reassigned-twice-let-declaration.js?
hoisting-reassigned-twice-let-declaration.js defines 1 function(s): useHook.
What does hoisting-reassigned-twice-let-declaration.js depend on?
hoisting-reassigned-twice-let-declaration.js imports 1 module(s): shared-runtime.
Where is hoisting-reassigned-twice-let-declaration.js in the architecture?
hoisting-reassigned-twice-let-declaration.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/hoisting-reassigned-twice-let-declaration.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