Skip to content

Commit 43962aa

Browse files
committed
fix import in code sample
1 parent c519143 commit 43962aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/components/async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
In large applications, we may need to divide the app into smaller chunks and only load a component from the server when it's needed. To make that possible, Vue has a [`defineAsyncComponent`](/api/general.html#defineasynccomponent) method:
66

77
```js
8-
const { defineAsyncComponent } = Vue
8+
import { defineAsyncComponent } from 'vue'
99

1010
const AsyncComp = defineAsyncComponent(() => {
1111
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)