Home / Type/ HookKind Type — react Architecture

HookKind Type — react Architecture

Architecture documentation for the HookKind type/interface in ObjectShape.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  5230cd09_cf96_ca04_c14d_b3fb21f22f91["HookKind"]
  58f81300_7c82_5086_3e10_e46b5f3ab04d["ObjectShape.ts"]
  5230cd09_cf96_ca04_c14d_b3fb21f22f91 -->|defined in| 58f81300_7c82_5086_3e10_e46b5f3ab04d
  style 5230cd09_cf96_ca04_c14d_b3fb21f22f91 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/ObjectShape.ts lines 273–288

export type HookKind =
  | 'useContext'
  | 'useState'
  | 'useActionState'
  | 'useReducer'
  | 'useRef'
  | 'useEffect'
  | 'useLayoutEffect'
  | 'useInsertionEffect'
  | 'useMemo'
  | 'useCallback'
  | 'useTransition'
  | 'useImperativeHandle'
  | 'useEffectEvent'
  | 'useOptimistic'
  | 'Custom';

Frequently Asked Questions

What is the HookKind type?
HookKind is a type/interface in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/ObjectShape.ts.
Where is HookKind defined?
HookKind is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/ObjectShape.ts at line 273.

Analyze Your Own Codebase

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

Try Supermodel Free