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

Commit

Permalink
Add fallbackTag
Browse files Browse the repository at this point in the history
Add 'fallbacktag', without adding 'placeholder' and 'placeholdertag'`
  • Loading branch information
516310460 committed Aug 13, 2022
1 parent 2ec2d9b commit 15d4969
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 15d4969

Please sign in to comment.