gatsby-plugin-react-helmet npm 1

gatsby-plugin-react-helmet npm

npm install --save gatsby-plugin-react-helmet react-helmet

# yarn
yarn add gatsby-plugin-react-helmet react-helmet

Here is what the above code is Doing:
1. Import the Helmet component from react-helmet.
2. Import the graphql function from gatsby.
3. Write a graphql query to get the siteMetadata.
4. Use the Helmet component to set the title and meta tags.
5. Export the component.

Similar Posts