Home / Function/ isComponentDeclaration() — react Function Reference

isComponentDeclaration() — react Function Reference

Architecture documentation for the isComponentDeclaration() function in ComponentDeclaration.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  55caad3b_d237_c12f_6969_e6e7b691d35f["isComponentDeclaration()"]
  4d5127e7_7f7a_8639_b8da_3ebfa02a4a0b["ComponentDeclaration.ts"]
  55caad3b_d237_c12f_6969_e6e7b691d35f -->|defined in| 4d5127e7_7f7a_8639_b8da_3ebfa02a4a0b
  37c561cb_7b67_6332_ee68_b69aaf917134["getReactFunctionType()"]
  37c561cb_7b67_6332_ee68_b69aaf917134 -->|calls| 55caad3b_d237_c12f_6969_e6e7b691d35f
  fa6bc3ec_6f1d_920e_aa90_0efc0fe1dbcb["parseComponentDeclaration()"]
  fa6bc3ec_6f1d_920e_aa90_0efc0fe1dbcb -->|calls| 55caad3b_d237_c12f_6969_e6e7b691d35f
  style 55caad3b_d237_c12f_6969_e6e7b691d35f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Utils/ComponentDeclaration.ts lines 14–18

export function isComponentDeclaration(
  node: t.FunctionDeclaration,
): node is ComponentDeclaration {
  return Object.prototype.hasOwnProperty.call(node, '__componentDeclaration');
}

Domain

Subdomains

Frequently Asked Questions

What does isComponentDeclaration() do?
isComponentDeclaration() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Utils/ComponentDeclaration.ts.
Where is isComponentDeclaration() defined?
isComponentDeclaration() is defined in compiler/packages/babel-plugin-react-compiler/src/Utils/ComponentDeclaration.ts at line 14.
What calls isComponentDeclaration()?
isComponentDeclaration() is called by 2 function(s): getReactFunctionType, parseComponentDeclaration.

Analyze Your Own Codebase

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

Try Supermodel Free