Nuxt/test/fixtures/basic/components/client/MultiRootNode.client.vue
Daniel Roe c1ddb359e3
chore: update to use @nuxt/eslint-config (#24209)
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
2023-11-09 18:01:13 +01:00

21 lines
290 B
Vue

<template>
<div
v-bind="$attrs"
class="multi-root-node-count"
>
{{ count }}
</div>
<button
class="multi-root-node-button"
@click="add"
>
add 1 to count
</button>
</template>
<script setup>
const count = ref(0)
const add = () => count.value++
</script>