diff --git a/createApp.md b/createApp.md index cc92272..10b9f51 100644 --- a/createApp.md +++ b/createApp.md @@ -1,3 +1,30 @@ # 创建应用 -> `createApp()`, 会创建一个`wc-app`组件的同时, 全整合路由和状态管理。 \ No newline at end of file +> `createApp()`, 会创建一个`wc-app`组件的同时, 全整合路由和状态管理。`createApp()`提供了类似`vue3`的`API`, 极大的降低了学习成本, 指在让你能从vue应用中迁移过来。 + +```js + +const app = createApp({ + data: {}, + methods: {}, + render(){ + return html` +