Home / Function/ isComponentName() — react Function Reference

isComponentName() — react Function Reference

Architecture documentation for the isComponentName() function in babel-plugin-annotate-react-code.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  386d76a3_008b_7f70_bd91_8323ec18bd5c["isComponentName()"]
  90fd4a4d_9742_70a7_9512_f9dd5b565200["babel-plugin-annotate-react-code.ts"]
  386d76a3_008b_7f70_bd91_8323ec18bd5c -->|defined in| 90fd4a4d_9742_70a7_9512_f9dd5b565200
  40539f87_cad8_e5ab_baf5_c8916ae353cf["isComponentOrHookLike()"]
  40539f87_cad8_e5ab_baf5_c8916ae353cf -->|calls| 386d76a3_008b_7f70_bd91_8323ec18bd5c
  style 386d76a3_008b_7f70_bd91_8323ec18bd5c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts lines 169–171

function isComponentName(path: NodePath<t.Expression>): boolean {
  return path.isIdentifier() && /^[A-Z]/.test(path.node.name);
}

Subdomains

Frequently Asked Questions

What does isComponentName() do?
isComponentName() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts.
Where is isComponentName() defined?
isComponentName() is defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts at line 169.
What calls isComponentName()?
isComponentName() is called by 1 function(s): isComponentOrHookLike.

Analyze Your Own Codebase

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

Try Supermodel Free