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

index.tsx

15 lines348 Bytes

1import { createFileRoute } from '@tanstack/solid-router'
2import { CustomMessage } from '~/components/CustomMessage'
3​
4export const Route = createFileRoute('/')({
5 component: Home,
6})
7​
8function Home() {
9 return (
10 <div class="p-2">
11 <h3>Welcome Home!!!</h3>
12 <CustomMessage message="Hello from a custom component!" />
13 </div>
14 )