1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-04 18:54:09 +00:00
Nuxt/test/fixtures/basic/components/client/StringChildStatefulScript.client.vue

19 lines
291 B
Vue
Raw Normal View History

<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>