1.0.0 • Published 5 years ago

@customhooks/use-title v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

@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>;
}