Skip to content

Typescript development tooling section. Add lang="tsx" for typescript JSX support #602

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

Closed
vutran6853 opened this issue Oct 6, 2020 · 0 comments · Fixed by #837
Closed

Comments

@vutran6853
Copy link

vutran6853 commented Oct 6, 2020

Hey there,

I'd like to share some feedback on Typescript Development Tooling

Issue: I see there code block example to set lang="ts". It would be great to also add "tsx" for TSX support. It allow developer aware they can use jsx inside setup function and let them know jsx is support within SPA. Without this flag, typescript complier throw error at jsx.

Mybe within code block to show both lang example:

# Typescript support 
<script lang="ts">
  ...
</script>

# Typscript JSX support
<script lang="tsx">
  ...
</script>

Thanks for your time!

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 a pull request may close this issue.

1 participant