TanStackT
TanStack2y ago
5 replies
sad-indigo

Infer routes type to a custom component

I'm making a custom component that have a Link inside, I would like to pass the
to
route via props to the component, is there a type to get all the available routes in the same way the
to
prop of the
Link
does?

 <Link to="/settings">Back</Link>
Was this page helpful?