Skip to content

Commit a050dac

Browse files
committed
docs: mention TSX support and how to enable it with Vue CLI
vuejs/docs@438189a#diff-c8904f42c96ea728eea302e9bc39484fbb58d2401b4017ad37ea848fc8f183e5
1 parent ca96679 commit a050dac

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 @@ vue add typescript
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
### エディタによるサポート
8088

8189
TypeScript による Vue アプリケーションの開発のために、すぐに利用できる TypeScript サポートを提供している [Visual Studio Code](https://code.visualstudio.com/) を強く推奨します。[単一ファイルコンポーネント](./single-file-component.html) (SFCs) を使用している場合、SFC 内部での TypeScript の推論やその他の優れた機能を提供している、素晴らしい [Vetur エクステンション](https://github.com/vuejs/vetur) を入手してください。

0 commit comments

Comments
 (0)