Skip to content

Commit 5fd079e

Browse files
docs: replace reference to app folder with the correct src folder (#4598)
1 parent 63c82b6 commit 5fd079e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This is the file that will dictate the behavior of TanStack Router used within S
1818
from the default [preloading functionality](/router/latest/docs/framework/react/guide/preloading) to [caching staleness](/router/latest/docs/framework/react/guide/data-loading).
1919

2020
```tsx
21-
// app/router.tsx
21+
// src/router.tsx
2222
import { createRouter as createTanStackRouter } from '@tanstack/react-router'
2323
import { routeTree } from './routeTree.gen'
2424

@@ -77,7 +77,7 @@ Whether we are statically generating our app or serving it dynamically, the `ser
7777
Getting our html to the client is only half the battle. Once there, we need to hydrate our client-side JavaScript once the route resolves to the client. We do this by hydrating the root of our application with the `StartClient` component:
7878

7979
```tsx
80-
// app/client.tsx
80+
// src/client.tsx
8181
import { StartClient } from '@tanstack/react-start'
8282
import { StrictMode } from 'react'
8383
import { hydrateRoot } from 'react-dom/client'
@@ -102,7 +102,7 @@ Other than the client entry point (which is optional by default), the `__root` r
102102
Because it is **always rendered**, it is the perfect place to construct your application shell and take care of any global logic.
103103

104104
```tsx
105-
// app/routes/__root.tsx
105+
// src/routes/__root.tsx
106106
import {
107107
Outlet,
108108
createRootRoute,
@@ -165,7 +165,7 @@ Routes are an extensive feature of TanStack Router, and are covered thoroughly i
165165
- Much more!
166166

167167
```tsx
168-
// app/routes/index.tsx
168+
// src/routes/index.tsx
169169
import * as fs from 'node:fs'
170170
import { createFileRoute, useRouter } from '@tanstack/react-router'
171171
import { createServerFn } from '@tanstack/react-start'

0 commit comments

Comments
 (0)