Skip to content

Commit

Permalink
delete code
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jan 21, 2021
1 parent 06a29b1 commit 0ba2aa9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/runtime-core/createApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ import { createVNode } from "./createVNode";
export const createApp = (rootComponent) => {
const app = {
_component: rootComponent,
_container: null,
mount(rootContainer) {
console.log("基于根组件创建 vnode");
const vnode = createVNode(rootComponent);
app._container = rootContainer;
console.log("调用 render,基于 vnode 进行开箱");
render(vnode, rootContainer);
},
Expand Down

0 comments on commit 0ba2aa9

Please sign in to comment.