mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
docs(components): use fallbackTag
in ClientOnly
examples (#6587)
This commit is contained in:
parent
92a04cc036
commit
74320200e7
@ -164,7 +164,8 @@ Use a slot as fallback until `<ClientOnly>` is mounted on client side.
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
<ClientOnly>
|
<!-- This renders the "span" element on the server side -->
|
||||||
|
<ClientOnly fallbackTag="span">
|
||||||
<!-- this component will only be rendered on client side -->
|
<!-- this component will only be rendered on client side -->
|
||||||
<Comments />
|
<Comments />
|
||||||
<template #fallback>
|
<template #fallback>
|
||||||
|
Loading…
Reference in New Issue
Block a user