@nooks/use-title

1.0.2 • Public • Published

@nooks/use-title

React Hook to update your document's title.

Installation

yarn

yarn add @nooks/use-title

npm

npm i @nooks/use-title

Usage

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

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

Arguments

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

Package Sidebar

Install

npm i @nooks/use-title

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

1.55 kB

Total Files

4

Last publish

Collaborators

  • nomadcoders