Home / Function/ h() — vue Function Reference

h() — vue Function Reference

Architecture documentation for the h() function in h.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  8f039fb7_3dd7_c042_a405_8ef31efb27cd["h()"]
  94977aac_ee04_6312_be22_a49cc335d2ce["h.ts"]
  8f039fb7_3dd7_c042_a405_8ef31efb27cd -->|defined in| 94977aac_ee04_6312_be22_a49cc335d2ce
  2c55eb58_ce03_1c5e_ac99_4fc1ef41c3cd["createElement()"]
  8f039fb7_3dd7_c042_a405_8ef31efb27cd -->|calls| 2c55eb58_ce03_1c5e_ac99_4fc1ef41c3cd
  style 8f039fb7_3dd7_c042_a405_8ef31efb27cd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/v3/h.ts lines 9–18

export function h(type: any, props?: any, children?: any) {
  if (!currentInstance) {
    __DEV__ &&
      warn(
        `globally imported h() can only be invoked when there is an active ` +
          `component instance, e.g. synchronously in a component's render or setup function.`
      )
  }
  return createElement(currentInstance!, type, props, children, 2, true)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does h() do?
h() is a function in the vue codebase, defined in src/v3/h.ts.
Where is h() defined?
h() is defined in src/v3/h.ts at line 9.
What does h() call?
h() calls 1 function(s): createElement.

Analyze Your Own Codebase

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

Try Supermodel Free