@softbind/hook-use-title
v0.0.4
Published
`npm i @softbind/hook-use-title --save`
Downloads
3
Readme
useTitle
Installation
npm i @softbind/hook-use-title --save
API
useTitle(text)
Arguments
text: String
: is a value that you would to see in tab title.
import { useTitle } from "@softbind/hook-use-title";
const PageTemplate = ({ title, children }) => {
useTitle(title)
return (
<div>
<h1>{title}</h1> {children}
</div>
);
};