Home / Function/ createElement() — vue Function Reference

createElement() — vue Function Reference

Architecture documentation for the createElement() function in create-element.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  642a6516_0239_a923_4b9f_35cbc2fdb666["createElement()"]
  fa879678_0767_c9f5_f3e2_55c3620ec148["initRender()"]
  fa879678_0767_c9f5_f3e2_55c3620ec148 -->|calls| 642a6516_0239_a923_4b9f_35cbc2fdb666
  2a3d2c68_f002_d816_7b35_bdbc95f4434c["FunctionalRenderContext()"]
  2a3d2c68_f002_d816_7b35_bdbc95f4434c -->|calls| 642a6516_0239_a923_4b9f_35cbc2fdb666
  0aee3f17_5345_89e5_76b3_309abb64fbe1["h()"]
  0aee3f17_5345_89e5_76b3_309abb64fbe1 -->|calls| 642a6516_0239_a923_4b9f_35cbc2fdb666
  7052be7e_b5c9_7a95_ee8a_73a3c05abcb2["_createElement()"]
  642a6516_0239_a923_4b9f_35cbc2fdb666 -->|calls| 7052be7e_b5c9_7a95_ee8a_73a3c05abcb2
  style 642a6516_0239_a923_4b9f_35cbc2fdb666 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/vdom/create-element.ts lines 27–44

export function createElement(
  context: Component,
  tag: any,
  data: any,
  children: any,
  normalizationType: any,
  alwaysNormalize: boolean
): VNode | Array<VNode> {
  if (isArray(data) || isPrimitive(data)) {
    normalizationType = children
    children = data
    data = undefined
  }
  if (isTrue(alwaysNormalize)) {
    normalizationType = ALWAYS_NORMALIZE
  }
  return _createElement(context, tag, data, children, normalizationType)
}

Domain

Subdomains

Frequently Asked Questions

What does createElement() do?
createElement() is a function in the vue codebase.
What does createElement() call?
createElement() calls 1 function(s): _createElement.
What calls createElement()?
createElement() is called by 3 function(s): FunctionalRenderContext, h, initRender.

Analyze Your Own Codebase

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

Try Supermodel Free