isReactAPI() — react Function Reference
Architecture documentation for the isReactAPI() function in babel-plugin-annotate-react-code.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 97729260_91e5_ef3e_7c49_957ab5676be6["isReactAPI()"] 90fd4a4d_9742_70a7_9512_f9dd5b565200["babel-plugin-annotate-react-code.ts"] 97729260_91e5_ef3e_7c49_957ab5676be6 -->|defined in| 90fd4a4d_9742_70a7_9512_f9dd5b565200 e6a32231_fcbe_0fab_a874_68eff05ef0d7["isForwardRefCallback()"] e6a32231_fcbe_0fab_a874_68eff05ef0d7 -->|calls| 97729260_91e5_ef3e_7c49_957ab5676be6 42add05a_c196_1d10_3e0f_b8aa6b250328["isMemoCallback()"] 42add05a_c196_1d10_3e0f_b8aa6b250328 -->|calls| 97729260_91e5_ef3e_7c49_957ab5676be6 style 97729260_91e5_ef3e_7c49_957ab5676be6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts lines 198–211
function isReactAPI(
path: NodePath<t.Expression | t.PrivateName | t.V8IntrinsicIdentifier>,
functionName: string,
): boolean {
const node = path.node;
return (
(node.type === 'Identifier' && node.name === functionName) ||
(node.type === 'MemberExpression' &&
node.object.type === 'Identifier' &&
node.object.name === 'React' &&
node.property.type === 'Identifier' &&
node.property.name === functionName)
);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isReactAPI() do?
isReactAPI() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts.
Where is isReactAPI() defined?
isReactAPI() is defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts at line 198.
What calls isReactAPI()?
isReactAPI() is called by 2 function(s): isForwardRefCallback, isMemoCallback.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free