A simple library for changing page meta tags.
To install, you can use npm or yarn:
npm install react-head-meta
or
yarn add react-head-meta
The library is very easy to use, even a child can handle it!
The library has only 2 components responsible for meta tags.
import { Title, Description } from "react-head-meta";
function App() {
return (
<div>
<Title title="Home page | MyApp" />
<Description description="Home page of my new app" />
<h1>Home page</h1>
</div>
);
}
Prop | Type |
---|---|
title | string |
Prop | Type |
---|---|
description | string |
MIT