Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/rehooks/document-title

React hook for updating the document-title
https://github.com/rehooks/document-title

document hooks react title

Last synced: 2 months ago
JSON representation

React hook for updating the document-title

Lists

README

        

# `@rehooks/document-title`

> React hook for updating the document-title

> **Note:** This is using the new [React Hooks API Proposal](https://reactjs.org/docs/hooks-intro.html)
> 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

```sh
yarn add @rehooks/document-title
```

## Usage

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

function MyComponent() {
useDocumentTitle('Page Title');
return

;
}
```