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
  6a642a7b_a3d4_25f7_83b6_c67e29351960["h()"]
  451b8ba4_f373_c786_0c64_c3e7e51ce956["createElement()"]
  6a642a7b_a3d4_25f7_83b6_c67e29351960 -->|calls| 451b8ba4_f373_c786_0c64_c3e7e51ce956
  style 6a642a7b_a3d4_25f7_83b6_c67e29351960 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

Frequently Asked Questions

What does h() do?
h() is a function in the vue codebase.
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