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
History 2026-06-17 00:12:54 +02:00
..
.devcontainer docs: add devcontainer.json to all e2e/examples (#6972) 2026-03-18 15:43:14 +01:00
.vscode chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
src chore: update express and webpack-dev-server (#7443) 2026-05-20 10:58:22 +02:00
.gitignore feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
index.html chore: move start e2e and example projects from ./app to ./src (#3712) 2025-03-09 23:35:20 +01:00
package.json ci: Version Packages (#7576) 2026-06-17 00:12:54 +02:00
README.md docs(examples): standardize the READMEs for the React examples (#6014) 2025-12-07 01:39:44 +13:00
tsconfig.json chore(examples): fix with-trpc and with-trpc-react-query examples (#4539) 2025-06-30 14:08:36 +12:00
vite.config.ts docs: update examples/e2e to vite 8 (#6958) 2026-03-17 20:37:11 +01:00

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:

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

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
  • Type-safe API calls
  • End-to-end type safety
  • Server and client setup
  • Procedure definitions