Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
gatsby-plugin-react-head
Advanced tools
Manage document head data with react-head. Provides drop-in server rendering support for Gatsby.
Provides drop-in support for server rendering data added with React Head.
React Head 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.
Size comparison:
Package | Size |
---|---|
react-helmet | |
react-head |
React Helmet is great and has more features than React Head, but sometimes you want less than more.
npm i gatsby-plugin-react-head react-head
or
yarn add gatsby-plugin-react-head react-head
Add the plugin to the plugins array in your gatsby-config.js
plugins: [`gatsby-plugin-react-head`];
You don't have to do anything else. Render one of head tag components whenever you want to inject a tag in the <head />
.
import React from "react";
import { Title, Link, Meta } from "react-head";
const Seo = () => (
<>
<Title>Hello world!</Title>
<Meta name="description" content="Lorem ipsum dolor sit amet." />
<Link rel="canonical" content="https://bejamas.io/" />
</>
);
FAQs
Manage document head data with react-head. Provides drop-in server rendering support for Gatsby.
The npm package gatsby-plugin-react-head receives a total of 21 weekly downloads. As such, gatsby-plugin-react-head popularity was classified as not popular.
We found that gatsby-plugin-react-head demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.