Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@customhooks/use-title

signloper3MIT1.0.0

React Hook to update document's title

react, hooks, react, hooks, react, title

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