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

users.index.tsx

19 lines384 Bytes

1import { createFileRoute } from '@tanstack/react-router'
2​
3export const Route = createFileRoute('/users/')({
4 component: UsersIndexComponent,
5})
6​
7function UsersIndexComponent() {
8 return (
9 <div>
10 Select a user or{' '}
11 <a
12 href="/api/users"
13 className="text-blue-800 hover:text-blue-600 underline"
14 >
15 view as JSON
16 </a>
17 </div>
18 )