### Fetch GitHub Repo Data with TanStack Query
Source: https://tanstack.com/query/latest/docs/react/overview
This snippet shows how to use `useQuery` to fetch data from the GitHub API and display it in a React component. It includes basic loading and error handling.
```tsx
import {
QueryClient,
QueryClientProvider,
useQuery,
} from '@tanstack/react-query'
const queryClient = new QueryClient()
export default function App() {
return (
{data.description}
👀 {data.subscribers_count}{' '} ✨ {data.stargazers_count}{' '} 🍴 {data.forks_count}