vuejs-challenges
vuejs-challenges copied to clipboard
12 - Optimize performance directive
// your answers
<script setup>
import { ref } from "vue"
const count = ref(2)
setInterval(() => {
count.value++
console.log(count.value)
}, 1000)
</script>
<template>
<span v-once>Make it never change: {{ count }}</span>
</template>