isForwardRefCallback() — react Function Reference
Architecture documentation for the isForwardRefCallback() function in babel-plugin-annotate-react-code.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD e6a32231_fcbe_0fab_a874_68eff05ef0d7["isForwardRefCallback()"] 90fd4a4d_9742_70a7_9512_f9dd5b565200["babel-plugin-annotate-react-code.ts"] e6a32231_fcbe_0fab_a874_68eff05ef0d7 -->|defined in| 90fd4a4d_9742_70a7_9512_f9dd5b565200 40539f87_cad8_e5ab_baf5_c8916ae353cf["isComponentOrHookLike()"] 40539f87_cad8_e5ab_baf5_c8916ae353cf -->|calls| e6a32231_fcbe_0fab_a874_68eff05ef0d7 97729260_91e5_ef3e_7c49_957ab5676be6["isReactAPI()"] e6a32231_fcbe_0fab_a874_68eff05ef0d7 -->|calls| 97729260_91e5_ef3e_7c49_957ab5676be6 style e6a32231_fcbe_0fab_a874_68eff05ef0d7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts lines 177–183
function isForwardRefCallback(path: NodePath<t.Expression>): boolean {
return !!(
path.parentPath.isCallExpression() &&
path.parentPath.get('callee').isExpression() &&
isReactAPI(path.parentPath.get('callee'), 'forwardRef')
);
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does isForwardRefCallback() do?
isForwardRefCallback() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts.
Where is isForwardRefCallback() defined?
isForwardRefCallback() is defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts at line 177.
What does isForwardRefCallback() call?
isForwardRefCallback() calls 1 function(s): isReactAPI.
What calls isForwardRefCallback()?
isForwardRefCallback() 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