Skip to content

Commit aeb5bee

Browse files
authored
fix: should use createApp instead of new Vue() (#472)
1 parent 99a2382 commit aeb5bee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/guide/render-function.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,7 @@ That's why there's a [Babel plugin](https://github.com/vuejs/jsx-next) to use JS
414414
```jsx
415415
import AnchoredHeading from './AnchoredHeading.vue'
416416

417-
new Vue({
418-
el: '#demo',
417+
const app = createApp({
419418
render() {
420419
return (
421420
<AnchoredHeading level={1}>
@@ -424,6 +423,8 @@ new Vue({
424423
)
425424
}
426425
})
426+
427+
app.mount('#demo')
427428
```
428429

429430
For more on how JSX maps to JavaScript, see the [usage docs](https://github.com/vuejs/jsx-next#installation).

0 commit comments

Comments
 (0)