use-document-title
A React hook that sets the current title of the document.
Basic Usage
Live Examples
API
Arguments
title
- The new title of the document.
Example
Installation
$ npm install @tanem/use-document-title --save
There are also UMD builds available via unpkg:
- https://unpkg.com/@tanem/use-document-title/dist/use-document-title.umd.development.js
- https://unpkg.com/@tanem/use-document-title/dist/use-document-title.umd.production.js
For the non-minified development version, make sure you have already included:
For the minified production version, make sure you have already included: