DEV Community

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

Posted on

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)