@customhooks/use-title
v1.0.0
Published
React Hook to update document's title
Downloads
2
Maintainers
Readme
@customhooks/use-title
React Hook to update document's title.
Installaction
npm install @customhooks/use-title
or
yarn add @customhooks/use-title
Usage
useTitle()
have a one argument like this :
useTitle(title)
title
is must be string.
import React from "react";
import useTitle from "@customhooks/use-title";
function App() {
useTitle("Hello World!");
return <h1>Hello World!</h1>;
}