@axetroy/react-document-title
v2.0.0
Published
[![Greenkeeper badge](https://badges.greenkeeper.io/axetroy/react-document-title.svg)](https://greenkeeper.io/)
Downloads
9
Maintainers
Readme
react-document-title
Installation
npm install @axetroy/react-document-title
Usage
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 (
<div>
<DocumentTitle title={this.state.title}></DocumentTitle>
</div>
);
}
}
render(<App />, element);
Props
title:Array
revert:Boolean
Run the Demo
git clone https://github.com/axetroy/react-document-title.git
yarn
yarn start
License
The MIT License