MCPcopy Create free account
hub / github.com/TanStack/router / NotFound

Function NotFound

e2e/solid-start/basic/src/components/NotFound.tsx:3–25  ·  view source on GitHub ↗
({ children }: { children?: any })

Source from the content-addressed store, hash-verified

1import { Link } from '@tanstack/solid-router'
2
3export function NotFound({ children }: { children?: any }) {
4 return (
5 <div class="space-y-2 p-2" data-testid="default-not-found-component">
6 <div class="text-gray-600 dark:text-gray-400">
7 {children || <p>The page you are looking for does not exist.</p>}
8 </div>
9 <p class="flex items-center gap-2 flex-wrap">
10 <button
11 onClick={() => window.history.back()}
12 class="bg-emerald-500 text-white px-2 py-1 rounded-sm uppercase font-black text-sm"
13 >
14 Go back
15 </button>
16 <Link
17 to="/"
18 class="bg-cyan-600 text-white px-2 py-1 rounded-sm uppercase font-black text-sm"
19 >
20 Start Over
21 </Link>
22 </p>
23 </div>
24 )
25}

Callers

nothing calls this directly

Calls 1

backMethod · 0.80

Tested by

no test coverage detected