Skip to content

Commit 6202162

Browse files
authored
docs: change hydration target to document.body in custom client.tsx for Solid (#5091)
Fixes #5085 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated the Solid framework “Learn the Basics” guide to correct the client hydration example, targeting the appropriate DOM root. * Clarifies which element to hydrate, aligning the snippet with current best practices and reducing confusion for readers. * Improves copy‑paste reliability of the example for newcomers following the setup steps. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent fbedc50 commit 6202162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/start/framework/solid/learn-the-basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ import { createRouter } from './router'
8585

8686
const router = createRouter()
8787

88-
hydrate(() => <StartClient router={router} />, document)
88+
hydrate(() => <StartClient router={router} />, document.body)
8989
```
9090

9191
This enables us to kick off client-side routing once the user's initial server request has fulfilled.

0 commit comments

Comments
 (0)