/react-document-title

Provides a declarative way to specify document.title in a single-page app.

Primary LanguageJavaScript

react-document-title

Provides a declarative way to specify document.title in a single-page app.

Example

class Home extends Component {
  render() {
    return (
      <DocumentTitle title="Home">
        <h1>Home, sweet home.</h1>
      </DocumentTitle>
    );
  }
}