From 67696ac08bf39662aa796ce44e556b73e96594a5 Mon Sep 17 00:00:00 2001 From: Vincent Taverna Date: Thu, 24 Nov 2016 00:10:23 -0500 Subject: [PATCH] Correct the usage of title as a component Documentation for this feature can be found [here](https://github.com/nfl/react-helmet#as-react-components) --- html.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/html.js b/html.js index d68260b..fbef134 100644 --- a/html.js +++ b/html.js @@ -11,7 +11,7 @@ module.exports = React.createClass({ }, render() { const {body, route} = this.props - const head = Helmet.rewind() + const {title} = Helmet.rewind() const font = let css if (process.env.NODE_ENV === 'production') { @@ -24,9 +24,7 @@ module.exports = React.createClass({ - - { head.title } - + { title.toComponent() } { font } { css }