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
  c99fb29c_1811_ff40_c612_793f4b6d0a4f["h()"]
  a3090893_4f42_c7c7_044e_3d18b8c33433["h.ts"]
  c99fb29c_1811_ff40_c612_793f4b6d0a4f -->|defined in| a3090893_4f42_c7c7_044e_3d18b8c33433
  02c4c5f0_14bc_07b8_fddc_e3511462f997["createElement()"]
  c99fb29c_1811_ff40_c612_793f4b6d0a4f -->|calls| 02c4c5f0_14bc_07b8_fddc_e3511462f997
  style c99fb29c_1811_ff40_c612_793f4b6d0a4f 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