Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

README.md

46 lines840 Bytes

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