Home / Function/ MyApp() — react Function Reference

MyApp() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  88c9bf0a_5565_94a3_f4dc_eee636e1da08["MyApp()"]
  7ca450ae_3436_d3aa_e097_8667f3a3e5b0["repro-invalid-pruned-scope-leaks-value.ts"]
  88c9bf0a_5565_94a3_f4dc_eee636e1da08 -->|defined in| 7ca450ae_3436_d3aa_e097_8667f3a3e5b0
  style 88c9bf0a_5565_94a3_f4dc_eee636e1da08 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.ts lines 15–25

function MyApp({count}) {
  const z = makeObject_Primitives();
  const x = useIdentity(2);
  const y = sum(x, count);
  mutate(z);
  const thing = [y, z];
  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.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.ts at line 15.

Analyze Your Own Codebase

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

Try Supermodel Free