Home / Function/ get2() — react Function Reference

get2() — react Function Reference

Architecture documentation for the get2() function in hoisting-repro-variable-used-in-assignment.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  4a13f046_2db2_31cc_c0ea_7ca141d841e9["get2()"]
  cdf99318_4c9e_4942_6a42_c9b2ee82f3c3["hoisting-repro-variable-used-in-assignment.js"]
  4a13f046_2db2_31cc_c0ea_7ca141d841e9 -->|defined in| cdf99318_4c9e_4942_6a42_c9b2ee82f3c3
  style 4a13f046_2db2_31cc_c0ea_7ca141d841e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/hoisting-repro-variable-used-in-assignment.js lines 1–8

function get2() {
  const callbk = () => {
    const copy = x;
    return copy;
  };
  const x = 2;
  return callbk();
}

Subdomains

Frequently Asked Questions

What does get2() do?
get2() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/hoisting-repro-variable-used-in-assignment.js.
Where is get2() defined?
get2() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/hoisting-repro-variable-used-in-assignment.js at line 1.

Analyze Your Own Codebase

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

Try Supermodel Free