@customhooks/use-title

1.0.0 • Public • Published

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

/@customhooks/use-title/

    Package Sidebar

    Install

    npm i @customhooks/use-title

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.64 kB

    Total Files

    4

    Last publish

    Collaborators

    • signloper