Socket
Socket
Sign inDemoInstall

gatsby-plugin-react-helmet-async

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-react-helmet-async

Use react-helmet-async with Gatsby


Version published
Weekly downloads
4.1K
decreased by-13.85%
Maintainers
1
Weekly downloads
 
Created
Source

NPM package downloads Depfu Code size Repo size

gatsby-plugin-react-helmet-async

Description

Provides drop-in support for server rendering data added with React Helmet Async.

React Helmet Async 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.

How to install

If you're using NPM, replace yarn add with npm i:

yarn add react-helmet-async gatsby-plugin-react-helmet-async

react-helmet-async requires your react and react-dom to be at least 16.6.0. If they're older than that, you'll need to upgrade them:

yarn add react@^16.6.0 react-dom@^16.6.0

Using TypeScript

This package includes its own types, as do gatsby and react-helmet-async. To get types for the other packages, you'll need to install them separately:

yarn add -D @types/react @types/react-dom

How to use

Just add the plugin to the plugins array in your gatsby-config.js:

module.exports = {
  plugins: [
    `gatsby-plugin-react-helmet-async`,
  ]
}

Keywords

FAQs

Package last updated on 06 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc