Display GraphQL Data with a React Component

InstructorIan Jones

Share this video with your friends

Send Tweet

We take the data from our useQuery result and display it in an unordered list element.

We need to make sure to return a loading indicator when result.data is undefined. When result.data is truthy, we know that the GraphQL request has returned the data we asked for.