Nuxt/examples/experimental/reactivity-transform/components/label.vue
renovate[bot] e38e1de740
refactor: apply lints from @nuxtjs/eslint-config-typescript v11 (#7114)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-31 20:34:17 +02:00

14 lines
253 B
Vue

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