@kooks/use-title
v1.0.1
Published
React Hook to update your document's title
Downloads
1
Readme
@kooks/use-title
React Hook to update your document's title
Installation
yarn
yarn add @kooks/use-title
npm
npm i @kooks/use-title
Usage
import React from "react";
import useTitle from "@kooks/use-title";
const App = () => {
useTitle("Hello...");
return (
<div>
<h1>Hi</h1>
</div>
);
};
Arguments
| Argument | Type | Description | Required | | -------- | ------ | ------------------------------------------ | -------- | | title | string | The title you want to use on your document | yes |