@tanstack/react-query (formerly React Query) is a data synchronization library for React, handling fetching, caching, mutations, and optimistic updates server-state.
It reduces boilerplate for API interactions.
Use React Query when:
Note: Use useQuery for reads.
Invalidate on focus for freshness.
Paginate with query params.