Complete the code to declare a reactive variable using reactivity transform.
let count = [1](0)
Use ref to declare a reactive primitive variable with reactivity transform.
Complete the code to use reactivity transform to automatically unwrap refs in the template.
<template>
<p>{{ [1] }}</p>
</template>count.value inside template which is unnecessarycount() as a functionWith reactivity transform, refs are automatically unwrapped in templates, so just use count.
Fix the error in the script setup by correctly importing the reactivity transform helper.
<script setup> import { [1] } from 'vue' let count = ref(0) </script>
You must import ref to use it for reactive variables.
Fill both blanks to create a reactive object and access its property with reactivity transform.
<script setup> let state = [1]({ count: 0 }) console.log(state.[2]) </script>
Use reactive for objects and access properties directly without .value.
Fill all three blanks to correctly use reactivity transform with a computed property and watch effect.
<script setup> let count = ref(0) let double = [1](() => count.value [2] 2) watch(() => count, (newVal) => { console.log('Count changed to', [3]) }) </script>
Use computed for derived values, * for multiplication, and newVal from watch callback.