RE

React Helmet

react-helmet

A document head manager for React

Utilities
react-helmet
nfl
react
document
head
title
meta
link
script
base
Stars
17k
Weekly
3.0M
Open issues
219
Bundle
~25 kB

Installation

npm install react-helmet

Code example

import { useHelmet } from "react-helmet";

export function Example() {
  const value = useHelmet();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by NFL
  • 3.0M weekly downloads. Battle tested
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 219 open issues on GitHub

FAQs

Alternatives & similar libraries