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.
You must be a Pro Member to view code
Access all courses and lessons, track your progress, gain confidence and expertise.