1.0.2 • Published 4 years ago

@rehooks/document-title v1.0.2

Weekly downloads
2,077
License
MIT
Repository
github
Last release
4 years ago

@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/>;
}
1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

6 years ago