Skip to content
masterclass Buddy

Vue.js · Function

h

Vue's h function creates virtual DOM nodes. It accepts an element or component type, optional props, and optional children or slots.

Last updated

Syntax

function h(type: string | Component, props?: object | null, children?: Children | Slot | Slots): VNode
function h(type: string | Component, children?: Children | Slot): VNode

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • VNode
  • Component
  • createVNode
  • Render Functions & JSX

Source: Render Function APIs | Vue.js. Checked 2026-11-03.