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

Header.tsx

21 lines595 Bytes

1import { Link } from '@tanstack/react-router'
2​
3export default function Header() {
4 return (
5 <header className="p-2 flex gap-2 bg-white text-black justify-between">
6 <nav className="flex flex-row">
7 <div className="px-2 font-bold">
8 <Link to="/">Home</Link>
9 </div>
10​
11 <div className="px-2 font-bold">
12 <Link to="/demo/start/server-funcs">Start - Server Functions</Link>
13 </div>
14​
15 <div className="px-2 font-bold">
16 <Link to="/demo/start/api-request">Start - API Request</Link>
17 </div>
18 </nav>
19 </header>
20 )