@gitgw/use-title
v1.1.0
Published
React Hook to update your document's title.
Downloads
22
Maintainers
Readme
@gitgw/use-title
React Hook to update your document's title.
Installation
npm
npm i @gitgw/use-title
yarn
yarn add @gitgw/use-title
Usage
import React from "react";
import useTitle from "@gitgw/use-title";
function App() {
useTitle("Hello");
return (
<div className="App"></div>
);
}
Arguments
Argument|Type|Description|Required| |-|-|-|-| |title|String|The title you want to use on your document|yes