Skip to content

Commit dd87dbe

Browse files
authored
docs: fix missing import and logo URL in Migrate from Next.js (#5718)
1 parent 31ad209 commit dd87dbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/start/framework/react/migrate-from-next-js.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ Instead of `page.tsx`, create an `index.tsx` file for the `/` route.
188188
- `src/app/page.tsx` to `src/app/index.tsx`
189189

190190
```tsx
191+
+ import { createFileRoute } from '@tanstack/react-router' // [!code ++]
192+
191193
- export default function Home() { // [!code --]
192194
+ export const Route = createFileRoute('/')({ // [!code ++]
193195
+ component: Home, // [!code ++]
@@ -198,7 +200,7 @@ Instead of `page.tsx`, create an `index.tsx` file for the `/` route.
198200
<main className="min-h-dvh w-screen flex items-center justify-center flex-col gap-y-4 p-4">
199201
<img
200202
className="max-w-sm w-full"
201-
src="https://raw.githubusercontent.com/tanstack/tanstack.com/main/src/images/splash-dark.png"
203+
src="https://raw.githubusercontent.com/TanStack/tanstack.com/main/public/images/logos/splash-dark.png"
202204
alt="TanStack Logo"
203205
/>
204206
<h1>

0 commit comments

Comments
 (0)