MCPcopy Index your code
hub / github.com/TanStack/router / IndexComponent

Function IndexComponent

packages/solid-router/tests/useNavigate.test.tsx:44–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 const rootRoute = createRootRoute()
43
44 const IndexComponent = () => {
45 const navigate = useNavigate()
46 return (
47 <>
48 <h1>Index</h1>
49 <button onClick={() => navigate({ to: '/' })}>Index</button>
50 <button onClick={() => navigate({ to: '/posts' })}>Posts</button>
51 </>
52 )
53 }
54
55 const indexRoute = createRoute({
56 getParentRoute: () => rootRoute,

Callers

nothing calls this directly

Calls 2

useNavigateFunction · 0.90
navigateFunction · 0.50

Tested by

no test coverage detected