Skip to content

Commit 1f34687

Browse files
authored
docs: Update code-splitting.md (#4267)
Fix code-based splitting example. Change file name from `// src/posts.tsx` to `// src/posts.lazy.tsx`
1 parent 64eb2c1 commit 1f34687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/router/framework/react/guide/code-splitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ If you are using code-based routing, you can still code-split your routes using
217217
Create a lazy route using the `createLazyRoute` function.
218218

219219
```tsx
220-
// src/posts.tsx
220+
// src/posts.lazy.tsx
221221
export const Route = createLazyRoute('/posts')({
222222
component: MyComponent,
223223
})

0 commit comments

Comments
 (0)