原文链接: vue3 ref 语法糖
上一篇: react hook 依赖数组
下一篇: css 合成层优化 [未解决]
https://github.com/vuejs/rfcs/pull/222
如果在setup中使用了await , 则自动转换为异步组件
用于简化setup
<script setup>
import { computed, reactive, watch } from "vue";
import Count from "./Count.vue";
ref: count = 0;
ref: doubled = computed(() => count * 2);
const inc = () =