Server state vs client state

A practical guide to the boundary between server state and client state in React — and when TanStack Query should own remote data instead of useState and useEffect.