Home / Function/ describeBuiltInComponentFrame() — react Function Reference

describeBuiltInComponentFrame() — react Function Reference

Architecture documentation for the describeBuiltInComponentFrame() function in ReactComponentStackFrame.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  7728f992_9635_0720_678d_adfb8958436b["describeBuiltInComponentFrame()"]
  823a67e4_24d9_f152_2b72_4a49ef93fd70["ReactComponentStackFrame.js"]
  7728f992_9635_0720_678d_adfb8958436b -->|defined in| 823a67e4_24d9_f152_2b72_4a49ef93fd70
  324c4ac3_e019_c3be_ed23_4066fa3a0522["describeDebugInfoFrame()"]
  324c4ac3_e019_c3be_ed23_4066fa3a0522 -->|calls| 7728f992_9635_0720_678d_adfb8958436b
  style 7728f992_9635_0720_678d_adfb8958436b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shared/ReactComponentStackFrame.js lines 20–41

export function describeBuiltInComponentFrame(name: string): string {
  if (prefix === undefined) {
    // Extract the VM specific prefix used by each line.
    try {
      throw Error();
    } catch (x) {
      const match = x.stack.trim().match(/\n( *(at )?)/);
      prefix = (match && match[1]) || '';
      suffix =
        x.stack.indexOf('\n    at') > -1
          ? // V8
            ' (<anonymous>)'
          : // JSC/Spidermonkey
            x.stack.indexOf('@') > -1
            ? '@unknown:0:0'
            : // Other
              '';
    }
  }
  // We use the prefix to ensure our stacks line up with native stack frames.
  return '\n' + prefix + name + suffix;
}

Domain

Subdomains

Frequently Asked Questions

What does describeBuiltInComponentFrame() do?
describeBuiltInComponentFrame() is a function in the react codebase, defined in packages/shared/ReactComponentStackFrame.js.
Where is describeBuiltInComponentFrame() defined?
describeBuiltInComponentFrame() is defined in packages/shared/ReactComponentStackFrame.js at line 20.
What calls describeBuiltInComponentFrame()?
describeBuiltInComponentFrame() is called by 1 function(s): describeDebugInfoFrame.

Analyze Your Own Codebase

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

Try Supermodel Free