Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-helmet-async

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-helmet-async

Thread-safe Helmet for React 16+ and friends

  • 1.0.0-beta.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8M
decreased by-2.32%
Maintainers
1
Weekly downloads
 
Created

What is react-helmet-async?

The react-helmet-async package is a reusable React component that manages changes to the document head, allowing developers to dynamically set the contents of the head section of the page, which includes the title, meta tags, and other elements. It is a thread-safe version of react-helmet that works well with server-side rendering.

What are react-helmet-async's main functionalities?

Setting the page title

This feature allows you to set the title of the page dynamically. The title tag inside the Helmet component will update the document's title when the component is rendered.

{"<Helmet><title>My Page Title</title></Helmet>"}

Managing meta tags

With this feature, you can manage meta tags such as the description, keywords, and others. This is particularly useful for SEO purposes and for providing metadata for social media platforms.

{"<Helmet><meta name='description' content='Page description' /></Helmet>"}

Adding link tags

This feature allows you to add link elements to the head, which can be used for defining canonical URLs, linking to stylesheets, or adding a favicon.

{"<Helmet><link rel='canonical' href='http://mysite.com/example' /></Helmet>"}

Adding script tags

You can dynamically add script tags to the head of the document, which is useful for including external JavaScript files or inline scripts.

{"<Helmet><script src='http://include.com/pathtojs.js' type='text/javascript' /></Helmet>"}

Other packages similar to react-helmet-async

FAQs

Package last updated on 11 Mar 2019

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