Back to Router

TanStack Router - tRPC Integration Example

examples/react/with-trpc/README.md

1.166.7751 B
Original Source

TanStack Router - tRPC Integration Example

An example demonstrating integration with tRPC for type-safe APIs.

Start a new project based on this example

To start a new project based on this example, run:

sh
npx gitpick TanStack/router/tree/main/examples/react/with-trpc with-trpc

Getting Started

Install dependencies:

sh
pnpm install

Start the development server:

sh
pnpm dev

Build

Build for production:

sh
pnpm build

About This Example

This example demonstrates:

  • tRPC integration with TanStack Router
  • Type-safe API calls
  • End-to-end type safety
  • Server and client setup
  • Procedure definitions