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

README.md

42 lines891 Bytes

1# TanStack Start - Basic React Query Example
2​
3A TanStack Start example demonstrating integration with TanStack Query (React Query).
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/start-basic-react-query start-basic-react-query
14```
15​
16## Getting Started
17​
18From your terminal:
19​
20```sh
21pnpm install
22pnpm dev
23```
24​
25This starts your app in development mode, rebuilding assets on file changes.
26​
27## Build
28​
29To build the app for production:
30​
31```sh
32pnpm build
33```
34​
35## TanStack Query Integration
36​
37This example demonstrates how to use TanStack Query with TanStack Start for:
38​
39- Server-side data fetching
40- Client-side caching and synchronization
41- Optimistic updates
42- Automatic refetching