Load Data using GraphQL Queries Directly in a Gatsby v2 Component with StaticQuery

InstructorJason Lengstorf

Share this video with your friends

Send Tweet

In this lesson, learn how to use StaticQuery to load data directly in the components that use them, making your Gatsby sites easier to understand and maintain. We’ll refactor a simplified Header component to eliminate prop drilling, loading the data with a GraphQL query right in the Header component instead.

Free Community Resource

A Community Resource means that it’s free to access for all. The instructor of this lesson requested it to be open to the public.