TanStackQuery
Framework
StartRouter
Data & State
QueryDBStoreAI
UI
TableChartsFormMarkdownHighlight
UX
VirtualPacerHotkeys
Tooling
DevtoolsConfigCLIIntent
Blog
Blog & Release Notes
About
YouTubeThe official TanStack channel.WorkshopsLive sessions from the maintainers.Release NotesThe latest releases and changelog.
Channels
DiscordReal-time community support.GitHubSource, issues, discussions, and releases.
People & Work
MaintainersMeet the people maintaining the stack.ShowcaseProjects selected by the TanStack team.Community projects
TanChatNEW
Tools
Application StarterAlphaGenerate TanStack app starters.StatsNPM and ecosystem usage data.
Merch
Support
Support OverviewFind the right support path.PartnersCompanies supporting TanStack.OSS SponsorsSponsors keeping TanStack open source.Enterprise SupportPrivate consulting and expert support.ContactGet in touch with the TanStack team.
About
EthosHow we approach open source.TenetsThe values that shape TanStack libraries.Design SystemLogos, tokens, and UI components.
Partners

Sponsorships, placements, and partner pages.

Work with
TanStack
Partnership Inquiry
Sign In
Query Docs
  • Home
  • Get Started
  • Guides
  • API
  • Examples
Examples
  • Simple
  • Basic
  • Basic w/ GraphQL-Request
  • Auto Refetching / Polling / Realtime
  • Optimistic Updates
  • Pagination
  • Load-More & Infinite Scroll
  • Infinite query with Max pages
  • Suspense
  • Default Query Function
  • Playground
  • Prefetching
  • Star Wars
  • Rick And Morty
  • Next.js Pages
  • Next.js app with prefetching
  • Next.js app with streaming
  • React Native
  • React Router
  • Offline Queries and Mutations
  • Algolia
  • Shadow DOM
  • Devtools Embedded Panel
  • Chat example (streaming)
  • Batching
HomeGet StartedGuidesAPIExamples
Examples
  • Simple
  • Basic
  • Basic w/ GraphQL-Request
  • Auto Refetching / Polling / Realtime
  • Optimistic Updates
  • Pagination
  • Load-More & Infinite Scroll
  • Infinite query with Max pages
  • Suspense
  • Default Query Function
  • Playground
  • Prefetching
  • Star Wars
  • Rick And Morty
  • Next.js Pages
  • Next.js app with prefetching
  • Next.js app with streaming
  • React Native
  • React Router
  • Offline Queries and Mutations
  • Algolia
  • Shadow DOM
  • Devtools Embedded Panel
  • Chat example (streaming)
  • Batching

React Example: Algolia GitHub

/src/index.tsx
import ReactDOM from 'react-dom/client'

import App from './App'

const rootElement = document.getElementById('root')
if (!rootElement) throw new Error('Missing #root element')
ReactDOM.createRoot(rootElement).render(<App />)
PartnersBecome a Partner
Gold
RailwayRailway
CodeRabbitCodeRabbit
VercelVercel
NetlifyNetlify
CloudflareCloudflare
LovableLovable
RenderRender
Silver
WorkOSWorkOS
AG GridAG Grid
SerpApiSerpApi
ClerkClerk
OpenRouterOpenRouter
Bronze
PrismaPrisma
Scarf
SentrySentry
UnkeyUnkey
Latest Posts

The open source application stack for the web.

Libraries

  • Browse all
  • Query
  • Router
  • Start
  • Table
  • Form

Blog

  • Latest posts
  • Release notes
  • YouTube
  • Workshops

Community

  • Discord
  • GitHub
  • Maintainers
  • Showcase
  • Community projects

Tools

  • Builder
  • Stats

Merch

  • Shop
  • Cart

Support

  • Support overview
  • Partners
  • OSS sponsors
  • Enterprise support
  • Contact
  • Ethos
  • Tenets
  • Design system

© 2026 TanStack LLC

  • Privacy
  • Terms