Home / Function/ MyApp() — react Function Reference

MyApp() — react Function Reference

Architecture documentation for the MyApp() function in repro-invalid-pruned-scope-leaks-value-via-alias.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  9f45408d_b7d0_00ad_e888_ef31d45241e8["MyApp()"]
  80854c9c_b8e1_bb65_8af8_68fd6483d24e["repro-invalid-pruned-scope-leaks-value-via-alias.ts"]
  9f45408d_b7d0_00ad_e888_ef31d45241e8 -->|defined in| 80854c9c_b8e1_bb65_8af8_68fd6483d24e
  style 9f45408d_b7d0_00ad_e888_ef31d45241e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-invalid-pruned-scope-leaks-value-via-alias.ts lines 15–26

function MyApp({count}) {
  const z = makeObject_Primitives();
  const x = useIdentity(2);
  const y = sum(x, count);
  mutate(z);
  const z2 = z;
  const thing = [y, z2];
  if (thing[1] !== z) {
    invariant(false, 'oh no!');
  }
  return thing;
}

Subdomains

Frequently Asked Questions

What does MyApp() do?
MyApp() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-invalid-pruned-scope-leaks-value-via-alias.ts.
Where is MyApp() defined?
MyApp() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-invalid-pruned-scope-leaks-value-via-alias.ts at line 15.

Analyze Your Own Codebase

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

Try Supermodel Free