mediumExtra#96

GraphQL query with Apollo Client

Prompt

Write a React Native component that uses Apollo Client's useQuery hook to fetch a list of books (id, title, author) and display them — handling the loading and error states before touching data.

Hints

Solution

Your Code

10 min

Tests

Click Run to test your code