0% completed
Follow the instructions below to complete the challenge:
Set Up React Query: Set up a QueryClientProvider
in your app.
Fetch Data from an API:
Use useQuery
to fetch data from a public API (e.g., https://jsonplaceholder.typicode.com/posts).
Display the Fetched Data: Render a list of post titles and descriptions.
Handle Loading and Error States: Show "Loading..." while fetching and an error message if the request fails.
.....
.....
.....