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

users.index.tsx

16 lines357 Bytes

1import { createFileRoute } from '@tanstack/solid-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 href="/api/users" class="text-blue-800 hover:text-blue-600 underline">
12 view as JSON
13 </a>
14 </div>
15 )