rhysforyou / gatsby-plugin-react-helmet-async

Use React Helmet Async with your Gatsby site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gatsby-plugin-react-helmet-async

GitHub npm (scoped)

Adds support for React Helmet Async to a Gatsby project.

Installation

# Yarn
yarn add react-helmet-async @rhysforyou/gatsby-plugin-react-helmet-async

# npm
npm install --save react-helmet-async @rhysforyou/gatsby-plugin-react-helmet-async

Usage

Add the plugin and its options to your gatsby-config.js like so:

module.exports = {
  plugins: ["@rhysforyou/gatsby-plugin-react-helmet-async"]
};

Then just use React Helmet Async as you usually would, the plugin will create the HelmetProvider component for you and ensure that your <head> element contains the correct tags when building your site.

About

Use React Helmet Async with your Gatsby site

License:MIT License


Languages

Language:JavaScript 100.0%