gatsby-plugin-react-helmet
Version:
Manage document head data with react-helmet. Provides drop-in server rendering support for Gatsby.
30 lines (18 loc) • 1.04 kB
Markdown
Provides drop-in support for server rendering data added with
[](https://github.com/nfl/react-helmet).
React Helmet is a component which lets you control your document head using
their React component.
With this plugin, attributes you add in their component, e.g. title, meta
attributes, etc. will get added to the static HTML pages Gatsby builds.
This is important not just for site viewers, but also for SEO -- title and description metadata stored in the document head is a key component used by Google in determining placement in search results.
`npm install --save gatsby-plugin-react-helmet react-helmet`
Just add the plugin to the plugins array in your `gatsby-config.js`
```javascript
plugins: [`gatsby-plugin-react-helmet`]
```
- [GatsbyJS.org](https://github.com/gatsbyjs/gatsby/blob/master/www/src/components/layout.js)
- [Jason Lengstorf personal website](https://github.com/jlengstorf/lengstorf.com/blob/master/src/components/SEO/SEO.js)