Skip to content
R

react-document-title

A declarative, nested, stateful document.title for React

by buzinasFree

#371in UI Libraries
0In stores

Description

React Document Title is a small React component for setting document.title declaratively in a single-page app. You place a DocumentTitle ele…

Highlights

  • Declarative document.title for React
  • Nested titles from app-wide to page-specific
  • Server rendering with rewind
  • No DOM output
  • Built with React Side Effect

Ratings & Reviews

No ratings yet

Be the first to rate react-document-title.

People also visit

R

react-titled

To set document.title with ease. Nested. Flexible

UI Libraries
Launch
R

react-document-meta

Declarative, nested and stateful HTML document meta tags for React

UI Libraries
Launch
R

react-meta-tags

Handle document meta/head tags in isomorphic react with ease

UI Libraries
Launch
R

react-body-classname

A declarative, nested way to manipulate your body's className

UI Libraries
Launch
R

react-headings

Auto-increment your HTML headings

UI Libraries
Launch
R

react-markdown

React component to render markdown

UI Libraries
Launch

react-document-title FAQ

What does React Document Title do?

It sets document.title from React components, declaratively, with nested titles.

Which React version is needed?

The README lists React 0.13.0 or later as a dependency.

How do I use it on the server?

After rendering to a string, call DocumentTitle.rewind() to get the title and embed it in the page template. Calling rewind avoids a memory leak.

Can it set meta tags?

No. The README says it only sets the title and points to React Helmet for meta tags.

Is it open source?

The repository is public on GitHub under the gaearon account.

What are the best react-document-title alternatives?

Popular alternatives to react-document-title include react-titled, react-document-meta and react-meta-tags. See all react-document-title alternatives

Developer Stuff

Badges