Skip to content

Commit

Permalink
chore(docs): Update add-seo-component (#28022)
Browse files Browse the repository at this point in the history
Typo: location -> pathname
  • Loading branch information
lellky authored Nov 13, 2020
1 parent f345ca4 commit 6b4b7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/add-seo-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Now define the query and pass it to `useStaticQuery`. You can also alias query i

```jsx:title=src/components/seo.js
const SEO = ({ title, description, image, article }) => {
const { location } = useLocation()
const { pathname } = useLocation()
const { site } = useStaticQuery(query)

return null
Expand Down

0 comments on commit 6b4b7cd

Please sign in to comment.