@gitgw/use-title

1.1.0 • Public • Published

@gitgw/use-title

React Hook to update your document's title.

Installation

npm

npm i @gitgw/use-title

yarn

yarn add @gitgw/use-title

Usage

import React from "react";
import useTitle from "@gitgw/use-title";

function App() {
  useTitle("Hello");
  
  return (
    <div className="App"></div>
  );
}

Arguments

Argument Type Description Required
title String The title you want to use on your document yes

/@gitgw/use-title/

    Package Sidebar

    Install

    npm i @gitgw/use-title

    Weekly Downloads

    2

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    1.54 kB

    Total Files

    4

    Last publish

    Collaborators

    • githubgw