Motivation
The ClientOnly component renders its children only on the client side. This is useful for components that need to
access the DOM or browser APIs that are not available on the server side.
Examples
Basic
Loading example...
With Fallback
To render someting on the server before rendering on the client, use the fallback prop.
Loading example...
API
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
fallback | any | false | undefined | undefined |