()
| 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, |
nothing calls this directly
no test coverage detected