Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/guide/render-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,7 @@ That's why there's a [Babel plugin](https://github.com/vuejs/jsx) to use JSX wit
```jsx
import AnchoredHeading from './AnchoredHeading.vue'

new Vue({
el: '#demo',
const app = createApp({
render() {
return (
<AnchoredHeading level={1}>
Expand All @@ -424,6 +423,8 @@ new Vue({
)
}
})

app.mount('#demo')
```

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