@rehooks/document-title
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@rehooks/document-title

React hook for updating the document-title

Note: This is using the new React Hooks API Proposal which is subject to change until React 16.7 final.

You'll need to install react, react-dom, etc at ^16.7.0-alpha.0

Install

yarn add @rehooks/document-title

Usage

import useDocumentTitle from '@rehooks/document-title';

function MyComponent() {
  useDocumentTitle('Page Title');
  return <div/>;
}

Package Sidebar

Install

npm i @rehooks/document-title

Weekly Downloads

233

Version

1.0.2

License

MIT

Unpacked Size

3.01 kB

Total Files

7

Last publish

Collaborators

  • fouad
  • hanford
  • iamsolankiamit
  • jmoxey
  • mathdroid
  • thejameskyle