Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

normal.tsx

13 lines367 Bytes

1import { createLazyFileRoute, createLazyRoute } from '../../src'
2​
3export function Route(id: string) {
4 return createLazyRoute(id)({
5 component: () => <h1 data-testid="lazy-route-page">I'm a normal route</h1>,
6 })
7}
8​
9export function FileRoute(id: string) {
10 return createLazyFileRoute(id as never)({
11 component: () => <h1>I'm a normal file route</h1>,
12 })