isComponentDeclaration() — react Function Reference
Architecture documentation for the isComponentDeclaration() function in babel-plugin-annotate-react-code.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 7a49857c_9cb2_3f7a_61c3_a3ecf2d8d15b["isComponentDeclaration()"] 90fd4a4d_9742_70a7_9512_f9dd5b565200["babel-plugin-annotate-react-code.ts"] 7a49857c_9cb2_3f7a_61c3_a3ecf2d8d15b -->|defined in| 90fd4a4d_9742_70a7_9512_f9dd5b565200 885dabed_4ea6_4b50_13ff_6ab9e94c743c["shouldVisit()"] 885dabed_4ea6_4b50_13ff_6ab9e94c743c -->|calls| 7a49857c_9cb2_3f7a_61c3_a3ecf2d8d15b style 7a49857c_9cb2_3f7a_61c3_a3ecf2d8d15b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts lines 91–95
export function isComponentDeclaration(
node: t.FunctionDeclaration,
): node is ComponentDeclaration {
return Object.prototype.hasOwnProperty.call(node, '__componentDeclaration');
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isComponentDeclaration() do?
isComponentDeclaration() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts.
Where is isComponentDeclaration() defined?
isComponentDeclaration() is defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts at line 91.
What calls isComponentDeclaration()?
isComponentDeclaration() is called by 1 function(s): shouldVisit.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free