Home / Function/ throwInvalidReact() — react Function Reference

throwInvalidReact() — react Function Reference

Architecture documentation for the throwInvalidReact() function in CompilerError.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  73346565_783f_1426_1d29_3d461dabc0a1["throwInvalidReact()"]
  e51fd0d2_bb38_cc97_7763_efe37f300a47["CompilerError"]
  73346565_783f_1426_1d29_3d461dabc0a1 -->|defined in| e51fd0d2_bb38_cc97_7763_efe37f300a47
  fd74cbf5_70fe_dfe3_61f3_388ace207e52["throwInvalidReact()"]
  fd74cbf5_70fe_dfe3_61f3_388ace207e52 -->|calls| 73346565_783f_1426_1d29_3d461dabc0a1
  4f6e0671_34eb_6836_c392_26dfbebca40d["validateNoCapitalizedCalls()"]
  4f6e0671_34eb_6836_c392_26dfbebca40d -->|calls| 73346565_783f_1426_1d29_3d461dabc0a1
  825ba705_282a_7031_34fa_49b26f1c9bed["pushErrorDetail()"]
  73346565_783f_1426_1d29_3d461dabc0a1 -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  style 73346565_783f_1426_1d29_3d461dabc0a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 365–369

  static throwInvalidReact(options: CompilerErrorDetailOptions): never {
    const errors = new CompilerError();
    errors.pushErrorDetail(new CompilerErrorDetail(options));
    throw errors;
  }

Domain

Subdomains

Frequently Asked Questions

What does throwInvalidReact() do?
throwInvalidReact() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is throwInvalidReact() defined?
throwInvalidReact() is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 365.
What does throwInvalidReact() call?
throwInvalidReact() calls 1 function(s): pushErrorDetail.
What calls throwInvalidReact()?
throwInvalidReact() is called by 2 function(s): throwInvalidReact, validateNoCapitalizedCalls.

Analyze Your Own Codebase

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

Try Supermodel Free