0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/examples/react/start-basic-react-query
History 2026-03-10 19:25:59 +00:00
..
.vscode chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
public feat: New Serialization Paradigm (#1824) 2024-06-28 09:45:01 -06:00
src chore: add source() to Tailwind v4 imports to ensure consistent hashing (#6459) 2026-01-24 01:49:12 +01:00
.gitignore feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
.prettierignore chore(examples): cleanup the deps for the start examples (#2388) 2024-09-21 22:21:59 +12:00
package.json release: v1.166.7 2026-03-10 19:25:59 +00:00
README.md docs(examples): standardize the READMEs for the React examples (#6014) 2025-12-07 01:39:44 +13:00
tsconfig.json chore: move start e2e and example projects from ./app to ./src (#3712) 2025-03-09 23:35:20 +01:00
vite.config.ts docs: move to tailwind 4 w/ vite (#6168) 2025-12-21 04:13:49 +01:00

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