Query an API using GraphQL in JavaScript

Dr. Derek Austin 🥳
1 min readSep 27, 2019

Thanks for the great article Riccardo Giorato !!! I really enjoyed seeing the new hooks from the apollo update.

This code just oozes cool:

Thanks again!

PS Your second file, the App.js, isn’t showing up. You have to copy-paste it over to a Gist (gist.github.com) and then embed the public Gist. Embedding straight from Github won’t work.

--

--

Dr. Derek Austin 🥳

I love working with Next.js + Tailwind CSS ♦ Lead UI Engineer ♦ React Software Architect ♦ SEO & Web Performance Expert ♦ I love accessible websites