Skip to content

Commit 438189a

Browse files
docs: mention TSX support and how to enable it with Vue CLI (#837)
1 parent c3b5b05 commit 438189a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/guide/typescript-support.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ Make sure that `script` part of the component has TypeScript set as a language:
7676
</script>
7777
```
7878

79+
Or, if you want to combine TypeScript with a [JSX `render` function](/guide/render-function.html#jsx):
80+
81+
```html
82+
<script lang="tsx">
83+
...
84+
</script>
85+
```
86+
7987
### Editor Support
8088

8189
For developing Vue applications with TypeScript, we strongly recommend using [Visual Studio Code](https://code.visualstudio.com/), which provides great out-of-the-box support for TypeScript. If you are using [single-file components](./single-file-component.html) (SFCs), get the awesome [Vetur extension](https://github.com/vuejs/vetur), which provides TypeScript inference inside SFCs and many other great features.

0 commit comments

Comments
 (0)