Open History to see the last commit
1# TanStack Router - React Query File-Based Example
2β
3An example combining file-based routing with TanStack Query integration.
4β
5- [TanStack Router Docs](https://tanstack.com/router)
6- [TanStack Query Docs](https://tanstack.com/query)
7β
8## Start a new project based on this example
9β
10To start a new project based on this example, run:
11β
12```sh
13npx gitpick TanStack/router/tree/main/examples/react/basic-react-query-file-based basic-react-query-file-based
14```
15β
16## Getting Started
17β
18Install dependencies:
19β
20```sh
21pnpm install
22```
23β
24Start the development server:
25β
26```sh
27pnpm dev
28```
29β
30## Build
31β
32Build for production:
33β
34```sh
35pnpm build
36```
37β
38## About This Example
39β
40This example demonstrates:
41β
42- File-based routing with TanStack Router
43- TanStack Query integration
44- Type-safe data fetching
45- Automatic route generation
46- Query-based data loading per route