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

Commit

Permalink
docs(components): use fallbackTag in ClientOnly examples (#6587)
Browse files Browse the repository at this point in the history
  • Loading branch information
516310460 committed Aug 13, 2022
1 parent 92a04cc commit 7432020
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/content/2.guide/3.directory-structure/4.components.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7432020

Please sign in to comment.