mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-23 11:52:38 +00:00
19 lines
278 B
Vue
19 lines
278 B
Vue
|
<script setup lang="ts">
|
||
|
const Child = defineComponent({
|
||
|
setup () {
|
||
|
const id = useId()
|
||
|
return () => h('div', id)
|
||
|
},
|
||
|
})
|
||
|
|
||
|
const id = useId()
|
||
|
useAsyncData('test', () => Promise.resolve('A'))
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<div>
|
||
|
<Child />
|
||
|
{{ id }}
|
||
|
</div>
|
||
|
</template>
|