1.0.2 • Published 3 years ago

@practical-react-hooks/use-title v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@practical-react-hooks/use-title

React Hook to update your document's title.

Installation

yarn

yarn add @practical-react-hooks/use-title  

npm

npm i @practical-react-hooks/use-title  

Usage

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

function App() {
  useTitle("Welcome");
  return <h1>Welcome</h1>;
}

Arguments

ArgumentTypeDescriptionRequired
titlestringThe title you want to use on your documentyes