Skip to content

Black Friday

Annual Pro is $90 for the first year, normally $120. Or start monthly at $6 for two months, then $12.

Ends Dec 4, 11:59 PM PT.

Create an account
← Public packages

@kody/example-reading-list

A small reading list app built from the app starter: warm theme, mobile layout, sign-in, and saved books.

FollowFork

Files

index.tsx

22 lines · 550 B · TypeScript
import { Link, createRoute } from '@tanstack/react-router'
import { site } from '../content/site.ts'
import { rootRoute } from './root.tsx'

export const indexRoute = createRoute({
	getParentRoute: () => rootRoute,
	path: '/',
	component: function Home() {
		return (
			<section className="card">
				<h1>{site.home.heading}</h1>
				<p className="muted">{site.tagline}</p>
				<p>{site.home.body}</p>
				<div>
					<Link to="/items" className="button" data-variant="primary">
						{site.home.cta}
					</Link>
				</div>
			</section>
		)
	},
})