()
| 26 | }) |
| 27 | |
| 28 | function RootComponent() { |
| 29 | return ( |
| 30 | <> |
| 31 | <div class="p-2 flex gap-2 text-lg border-b"> |
| 32 | <Link |
| 33 | to="/" |
| 34 | activeProps={{ |
| 35 | class: 'font-bold', |
| 36 | }} |
| 37 | activeOptions={{ exact: true }} |
| 38 | > |
| 39 | Home |
| 40 | </Link>{' '} |
| 41 | <Link |
| 42 | to="/posts" |
| 43 | activeProps={{ |
| 44 | class: 'font-bold', |
| 45 | }} |
| 46 | > |
| 47 | Posts |
| 48 | </Link>{' '} |
| 49 | <Link |
| 50 | to="/route-a" |
| 51 | activeProps={{ |
| 52 | class: 'font-bold', |
| 53 | }} |
| 54 | > |
| 55 | Pathless Layout |
| 56 | </Link>{' '} |
| 57 | <Link |
| 58 | // @ts-expect-error |
| 59 | to="/this-route-does-not-exist" |
| 60 | activeProps={{ |
| 61 | class: 'font-bold', |
| 62 | }} |
| 63 | > |
| 64 | This Route Does Not Exist |
| 65 | </Link> |
| 66 | </div> |
| 67 | <Outlet /> |
| 68 | </> |
| 69 | ) |
| 70 | } |
| 71 | const indexRoute = createRoute({ |
| 72 | getParentRoute: () => rootRoute, |
| 73 | path: '/', |
nothing calls this directly
no outgoing calls
no test coverage detected