Get Site Metadata with useStaticQuery

Sam Julien
InstructorSam Julien

Share this video with your friends

Send Tweet

Gatsby provides a React hook that lets us use static queries in our components. It's called (appropriately) useStaticQuery. In this lesson, you'll learn how to use useStaticQuery to get site metadata from your Gatsby config file.