Skip to content

Mention TSX support #837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2021
Merged

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