Based on the "Sending Http Requests (e.g. Connecting to a Database)" chapter of Maximilian's popular Udemy course. It queries the GraphQL version of the SWAPI api using a custom React hook.
Check the source here.