Skip to content

Commit 93c7e1f

Browse files
authored
Update
1 parent 4f19bcd commit 93c7e1f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/routes/solid-start/reference/client/client-only.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ title: clientOnly
55
The `clientOnly` function allows components or pages to render exclusively on the client side, bypassing server-side rendering (_SSR_).
66
This is useful for code that relies on the browser, such as Web3 interactions (like `window.ethereum` for Ethereum-based dApps) or IndexedDB for client-side storage.
77

8-
## How to Use `clientOnly`
9-
10-
Follow these steps to implement `clientOnly` in your Solid Start project:
8+
## How to Use `clientOnly` in Components
119

1210
1. **Isolate Client-Only Logic**: Create a separate file for the component that depends on browser-specific features, such as DOM or browser APIs.
1311

0 commit comments

Comments
 (0)