document-title-decorator
v1.0.3
Published
Provides a decorator way to specify document.title in a single-page app.
Downloads
2
Readme
document-title-decorator
Provides a decorator way to specify document.title in a single-page app.
Installation
npm i document-title-decorator
Basic Usage
import DocumentTitle from "document-title-decorator";
import React, {Component} from 'react';
@DocumentTitle('Welcome!')
class Home extends Component {
render() {
return (null)
}
}