Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MMmaXingXing/mini-vue
/ createComponentInstance
Function
createComponentInstance
copy_code/src/runtime-core/component.ts:1–8 ·
view source on GitHub ↗
(vnode)
Source
from the content-addressed store, hash-verified
1
export
const
createComponentInstance = (vnode) => {
2
const
component = {
3
vnode,
4
type
: vnode.
type
5
};
6
7
return
component;
8
};
9
10
export
const
setupComponent = (instance) => {
11
// init props
Callers
1
mountComponent
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected