Home / Function/ isForwardRefCallback() — react Function Reference

isForwardRefCallback() — react Function Reference

Architecture documentation for the isForwardRefCallback() function in Program.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  8e26b3bb_a1d7_155c_c8b6_2082b5792efb["isForwardRefCallback()"]
  9aa4477d_960b_1ea1_b6d9_36076aaa70bd["Program.ts"]
  8e26b3bb_a1d7_155c_c8b6_2082b5792efb -->|defined in| 9aa4477d_960b_1ea1_b6d9_36076aaa70bd
  2bfe28c2_c730_2f65_86db_f782c4b5a3e5["getComponentOrHookLike()"]
  2bfe28c2_c730_2f65_86db_f782c4b5a3e5 -->|calls| 8e26b3bb_a1d7_155c_c8b6_2082b5792efb
  c475eaae_58c2_0cdb_d73f_64cab87dbc41["isReactAPI()"]
  8e26b3bb_a1d7_155c_c8b6_2082b5792efb -->|calls| c475eaae_58c2_0cdb_d73f_64cab87dbc41
  style 8e26b3bb_a1d7_155c_c8b6_2082b5792efb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts lines 1085–1091

function isForwardRefCallback(path: NodePath<t.Expression>): boolean {
  return !!(
    path.parentPath.isCallExpression() &&
    path.parentPath.get('callee').isExpression() &&
    isReactAPI(path.parentPath.get('callee'), 'forwardRef')
  );
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does isForwardRefCallback() do?
isForwardRefCallback() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts.
Where is isForwardRefCallback() defined?
isForwardRefCallback() is defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts at line 1085.
What does isForwardRefCallback() call?
isForwardRefCallback() calls 1 function(s): isReactAPI.
What calls isForwardRefCallback()?
isForwardRefCallback() is called by 1 function(s): getComponentOrHookLike.

Analyze Your Own Codebase

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

Try Supermodel Free