0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/examples/react/with-trpc-react-query/README.md
Ender Bonnet 6d619da632
docs(examples): standardize the READMEs for the React examples (#6014)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-12-07 01:39:44 +13:00

851 B

TanStack Router - tRPC with React Query Example

An example demonstrating integration of tRPC with TanStack 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/with-trpc-react-query with-trpc-react-query

Getting Started

Install dependencies:

pnpm install

Start the development server:

pnpm dev

Build

Build for production:

pnpm build

About This Example

This example demonstrates:

  • tRPC integration with TanStack Router
  • TanStack Query for data fetching
  • Type-safe API calls with caching
  • End-to-end type safety
  • Optimistic updates