You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/solid-start/reference/client/client-only.mdx
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,7 @@ title: clientOnly
5
5
The `clientOnly` function allows components or pages to render exclusively on the client side, bypassing server-side rendering (_SSR_).
6
6
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.
7
7
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
11
9
12
10
1.**Isolate Client-Only Logic**: Create a separate file for the component that depends on browser-specific features, such as DOM or browser APIs.
0 commit comments