﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head># TanStack React Query

> TanStack React Query integration for tRPC

This is the recommended way to use tRPC with React and TanStack Query. It provides factories for common TanStack React Query interfaces like `QueryKeys`, `QueryOptions`, and `MutationOptions`, giving you a more TanStack Query-native experience.

If you're starting a new project, use this integration rather than the [classic React Query integration](https://trpc.io/docs/client/react.md), which only gets bug fixes and will be removed in the next major version of tRPC. To move an existing project, follow the [migration guide](https://trpc.io/docs/client/tanstack-react-query/migrating.md). Read the [announcement post](/blog/introducing-ta