You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ This feature is still a WIP, and is an active RFC. [Follow the conversation](https://github.com/vuejs/rfcs/pull/182) to stay up to date with the lifecycle.
6
+
7
+
This provides a better DX when using the setup function in Vue SFCs.
8
+
Type inference still works, and you don't need to use `defineComponent`..
9
+
It's important to note that this is just **syntactic sugar**, and still get's compiled down to a component
10
+
using `defineComponent` and the `setup` function.
11
+
12
+
```vue
13
+
<script setup lang="ts">
14
+
import { ref } from 'vue';
15
+
16
+
export const welcome = ref('Welcome to Vue 3 with TS!');
0 commit comments