https://github.com/axetroy/react-document-title
react component for setting document title
https://github.com/axetroy/react-document-title
react react-component react-document-title title
Last synced: 17 days ago
JSON representation
react component for setting document title
- Host: GitHub
- URL: https://github.com/axetroy/react-document-title
- Owner: axetroy
- License: mit
- Created: 2017-06-09T17:02:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T13:32:02.000Z (about 6 years ago)
- Last Synced: 2025-02-15T05:15:51.520Z (2 months ago)
- Topics: react, react-component, react-document-title, title
- Language: JavaScript
- Homepage: https://axetroy.github.io/react-document-title/
- Size: 261 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-document-title
[](https://greenkeeper.io/)
[Online Demo](https://axetroy.github.io/react-document-title/)
### Installation
```bash
npm install @axetroy/react-document-title
```### Usage
```javascript
import React from 'react';
import { render } from 'react-dom';
import DocumentTitle from '@axetroy/react-document-title';const element = document.createElement('div');
document.body.appendChild(element);class App extends React.Component {
state = {
title: ['Axetroy']
};render() {
return (
);
}
}render(, element);
```### Props
- title:Array
- revert:Boolean
### Run the Demo
```bash
git clone https://github.com/axetroy/react-document-title.git
yarn
yarn start
```### License
The [MIT License](https://github.com/axetroy/react-document-title/blob/master/LICENSE)