Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Commit 7432020

Browse files
authored
docs(components): use fallbackTag in ClientOnly examples (#6587)
1 parent 92a04cc commit 7432020

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/content/2.guide/3.directory-structure/4.components.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ Use a slot as fallback until `<ClientOnly>` is mounted on client side.
164164
<template>
165165
<div>
166166
<Sidebar />
167-
<ClientOnly>
167+
<!-- This renders the "span" element on the server side -->
168+
<ClientOnly fallbackTag="span">
168169
<!-- this component will only be rendered on client side -->
169170
<Comments />
170171
<template #fallback>

0 commit comments

Comments
 (0)