Update the useEffect hook to fetch continents:

PHOTO EMBED

Fri Aug 23 2024 17:16:56 GMT+0000 (Coordinated Universal Time)

Saved by @negner

useEffect(() => {
  const query = `query {
    continents {
      name
      code
    }
  }`;

  fetchGraphQL(query).then((data) => {
    setContinents(data.data.continents);
  });
}, []);
content_copyCOPY