@feca-hooks/use-title
v1.0.1
Published
React Hook to update your document's title.
Downloads
1
Readme
@feca-hooks/use-title
React Hook to update your document's title.
How to Install
yarn
yarn add @feca-hooks/use-title
npm
npm i @feca-hooks/use-title
Usage
Code
import React from "react";
import useTitle from "@feca-hooks/use-title";
function App() {
useTitle("This is Title");
return <h1>Hello!</h1>;
}
Arguments
| Argument | Type | Description | Required | | ------------ | -------- | ------------------------------------------ | ------------ | | title | string | The title you want to set on your document | yes |