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

Function createNewApp

packages/runtime-core/__tests__/apiCreateApp.spec.ts:654–661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

652 const foo = ref('')
653
654 const createNewApp = () => {
655 const app = createApp({ render: () => h('new app') })
656 const wrapper = nodeOps.createElement('div')
657 app.mount(wrapper)
658 return function destroy() {
659 app.unmount()
660 }
661 }
662
663 const Comp = defineComponent({
664 setup() {

Callers 1

Calls 4

hFunction · 0.85
createElementMethod · 0.80
mountMethod · 0.80
unmountMethod · 0.65

Tested by

no test coverage detected