vuejs-challenges icon indicating copy to clipboard operation
vuejs-challenges copied to clipboard

12 - Optimize performance directive

Open imamnf opened this issue 11 months ago • 0 comments

<script setup>
import { ref } from "vue"

const count = ref(0)

setInterval(() => {
  count.value++
}, 1000)
</script>

<template>
  <span v-once>Make it never change: {{ count }}</span>
</template>

imamnf avatar Mar 27 '24 09:03 imamnf