My blog.js
component :
import {useStaticQuery, graphql} from "gatsby"
const blog = () => {
const {site} = useStaticQuery(
graphql`
query {
site {
siteMetadata {
title
}
}
}
`
)
return site.siteMetadata
}
export default blog
Gatsby docs : https://www.gatsbyjs.org/docs/use-static-query/
I've tried to fixed this issue !!
have any solution ??
Thanks