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
  0aee3f17_5345_89e5_76b3_309abb64fbe1["h()"]
  642a6516_0239_a923_4b9f_35cbc2fdb666["createElement()"]
  0aee3f17_5345_89e5_76b3_309abb64fbe1 -->|calls| 642a6516_0239_a923_4b9f_35cbc2fdb666
  style 0aee3f17_5345_89e5_76b3_309abb64fbe1 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