Home / Function/ isPropsType() — react Function Reference

isPropsType() — react Function Reference

Architecture documentation for the isPropsType() function in HIR.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  b0dd40a4_1198_c10c_b536_253714e7e7fe["isPropsType()"]
  18a78965_f593_105b_e5e8_07001321c2ec["HIR.ts"]
  b0dd40a4_1198_c10c_b536_253714e7e7fe -->|defined in| 18a78965_f593_105b_e5e8_07001321c2ec
  style b0dd40a4_1198_c10c_b536_253714e7e7fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 1811–1813

export function isPropsType(id: Identifier): boolean {
  return id.type.kind === 'Object' && id.type.shapeId === 'BuiltInProps';
}

Subdomains

Frequently Asked Questions

What does isPropsType() do?
isPropsType() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts.
Where is isPropsType() defined?
isPropsType() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts at line 1811.

Analyze Your Own Codebase

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

Try Supermodel Free