mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
|
History
|
||
|---|---|---|
| .. | ||
| .vscode | ||
| public | ||
| src | ||
| .gitignore | ||
| .prettierignore | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
TanStack Start - Basic React Query Example
A TanStack Start example demonstrating integration with TanStack Query (React Query).
Start a new project based on this example
To start a new project based on this example, run:
npx gitpick TanStack/router/tree/main/examples/react/start-basic-react-query start-basic-react-query
Getting Started
From your terminal:
pnpm install
pnpm dev
This starts your app in development mode, rebuilding assets on file changes.
Build
To build the app for production:
pnpm build
TanStack Query Integration
This example demonstrates how to use TanStack Query with TanStack Start for:
- Server-side data fetching
- Client-side caching and synchronization
- Optimistic updates
- Automatic refetching