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

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

Awesome Lists containing this project

README

        

# react-document-title

[![Greenkeeper badge](https://badges.greenkeeper.io/axetroy/react-document-title.svg)](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)