mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +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>
|
||||
<div>
|
||||
<Sidebar />
|
||||
<ClientOnly>
|
||||
<!-- This renders the "span" element on the server side -->
|
||||
<ClientOnly fallbackTag="span">
|
||||
<!-- this component will only be rendered on client side -->
|
||||
<Comments />
|
||||
<template #fallback>
|
||||
|
Loading…
Reference in New Issue
Block a user