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: about 2 months ago
JSON representation
React hook for updating the document-title
- Host: GitHub
- URL: https://github.com/rehooks/document-title
- Owner: rehooks
- License: mit
- Created: 2018-10-25T20:01:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-01T01:01:47.000Z (over 3 years ago)
- Last Synced: 2024-09-29T19:06:42.056Z (2 months ago)
- Topics: document, hooks, react, title
- Language: JavaScript
- Homepage:
- Size: 1.2 MB
- Stars: 59
- Watchers: 5
- Forks: 8
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-react-hooks - `@rehooks/document-title` - title. (Packages)
- awesome-react-hooks-cn - `@rehooks/document-title` - title. (Packages)
- awesome-react-hooks - `@rehooks/document-title` - title. (Packages)
- awesome-react-hooks - `@rehooks/document-title` - title. (Packages)
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
}
```