1.0.0 • Published 10 months ago
@daveyplate/use-document-title v1.0.0
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>
)
}
1.0.0
10 months ago