createRoute and createLazyRoute example + docs
The docs for
createRoute gives typescript errors when I try use the example from the doc.
Is there an example of this working somewhere?3 Replies
rare-sapphire•2y ago
The best place to start off would be the Quickstart examples.
Stackblitz: https://stackblitz.com/github/tanstack/router/tree/main/examples/react/quickstart-file-based
Github: https://github.com/tanstack/router/tree/main/examples/react/quickstart-file-based
StackBlitz
Router Quickstart File Based Example - StackBlitz
Run official live example code for Router Quickstart File Based, created by Tanstack on StackBlitz
GitHub
router/examples/react/quickstart-file-based at main · TanStack/router
🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering. - TanStack/router
foreign-sapphireOP•2y ago
the quick start is file based router, I am not able to get the non file based routing to work
rare-sapphire•2y ago
For code-based configuration: https://tanstack.com/router/latest/docs/framework/react/examples/quickstart
React Router Quickstart Example | TanStack Router Docs
An example showing how to implement Quickstart in React Router