Skip to content
Source
Sign inSign up
TanStack/router

update solid docs #5602

Mergedbrenelz(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5602/headmerged by birkskyum(GitHub profile, opens in a new tab)

Showing 2 changed files with 16 additions and 8 deletions.

x
0 of 2 viewed, 2 left
12 additions and 6 deletionsdocs/start/framework/solid/build-from-scratch.mdModified
View file
@@ -154,13 +154,14 @@
```tsx
// src/routes/__root.tsx
/// <reference types="vite/client" />
-import type * as Solid from 'solid-js'
+import * as Solid from 'solid-js'
import {
Outlet,
createRootRoute,
HeadContent,
Scripts,
} from '@tanstack/solid-router'
+import { HydrationScript } from 'solid-js/web'
​
export const Route = createRootRoute({
head: () => ({
@@ -190,11 +191,16 @@
​
function RootDocument({ children }: Readonly<{ children: Solid.JSX.Element }>) {
return (
- <>
- <HeadContent />
- {children}
- <Scripts />
- </>