Skip to content

Conversation

skirtles-code
Copy link
Contributor

As suggested in #602, the documentation gives an example of using <script lang="ts"> but doesn't mention <script lang="tsx">, which is required to use JSX.

I don't use JSX myself but from a bit of experimenting with Vue CLI it seems to be supported by default on a project that has TypeScript enabled. Adding lang="tsx" seemed to be the only step required to use it.

Closes #602.

@NataliaTepluhina NataliaTepluhina merged commit 438189a into vuejs:master Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript development tooling section. Add lang="tsx" for typescript JSX support
2 participants