DEV Community

Cover image for React, Vue and Svelte: Comparing TypeScript syntax
Clément Creusat
Clément Creusat

Posted on

4 3

React, Vue and Svelte: Comparing TypeScript syntax

If TypeScript is installed for...

React

// extension file:
Component.tsx
Enter fullscreen mode Exit fullscreen mode

Vue

// lang="ts" to <script> tag
<script setup lang="ts"></script>
Enter fullscreen mode Exit fullscreen mode

Svelte

// lang="ts" to <script> tag
<script lang="ts"></script>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →