Nuxt/test/fixtures/basic/components/client/StringChildStatefulScript.client.vue
Julien Huang e6ca07bdc0
fix(nuxt): remove fragment from createClientOnly (#7774)
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: jhuang@hsk-partners.com <jhuang@hsk-partners.com>
2022-10-03 16:14:55 +02:00

19 lines
291 B
Vue

<script lang="ts">
export default defineNuxtComponent({
setup (_p, ctx) {
const state = ref(0)
const add = () => state.value++
ctx.expose({ add, state })
return {
state
}
}
})
</script>
<template>
<div>Hi i should be rendered {{ state }}</div>
</template>