Nuxt/test/fixtures/basic/pages/client-only-page/normal.vue

16 lines
284 B
Vue
Raw Normal View History

2024-03-06 14:38:39 +00:00
<script setup lang="ts">
const renderedOnServer = useState(() => import.meta.server)
</script>
<template>
<div>
<NuxtLink to="/client-only-page">
to client only page
</NuxtLink>
<p id="server-rendered">
{{ renderedOnServer }}
</p>
</div>
</template>