Skip to content

daveyplate/use-document-title

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

use-document-title

React hook that gets the current document title and watches for changes.

Install

npm install @daveyplate/use-document-title

Usage

import { useDocumentTitle } from '@daveyplate/use-document-title'

function Header() {
  const documentTitle = useDocumentTitle()

  return (
        <h1>
            {documentTitle}
        </h1>
  )
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published