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

docs(components): use fallbackTag in ClientOnly examples #6587

Merged
merged 1 commit into from
Aug 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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