Nuxt/examples/experimental/reactivity-transform/components/label.vue

14 lines
251 B
Vue
Raw Normal View History

<script setup lang="ts">
const { count } = defineProps<{
count: number,
}>()
const doubled = $computed(() => count * 2)
</script>
<template>
<div class="pb2">
Count <b>{{ count }}</b><br>
Doubled <b>{{ doubled }}</b>
</div>
</template>