This React app uses TanStack Query to fetch and cache asynchronous data from the Dog API.
- Fetches dog breeds
- Displays loading, error, and success states
- Fetches detailed breed information by breed ID
- Fetches dog facts
- Fetches dog groups
- Uses TanStack Query with QueryClientProvider and useQuery
Install dependencies:
npm install
Install TanStack Query:
npm install @tanstack/react-query
Run the app:
npm run dev