MCPcopy
hub / github.com/vuejs/core / render

Function render

packages/runtime-dom/__tests__/createApp.spec.ts:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 const root = document.createElementNS('http://www.w3.org/2000/svg', 'svg')
7 createApp({
8 render() {
9 return h('g')
10 },
11 }).mount(root)
12 expect(root.children.length).toBe(1)
13 expect(root.children[0]).toBeInstanceOf(SVGElement)

Callers 4

nodeOps.spec.tsFile · 0.90
_updateMethod · 0.50

Calls 1

hFunction · 0.90

Tested by

no test coverage detected