Integrating react-helmet as dynamic meta tag in react js appliction
<p>I am trying to implement <a href="https://github.com/nfl/react-helmet" rel="nofollow noreferrer">react-helmet</a>  as a dynamic meta tag in our application, which uses server side rendering. I am little confused about it's setup (<a href="https://github.com/nfl/react-helmet" rel="nofollow noreferrer">react-helmet</a>), it's working but breaking on first page load. The second time I reload the page the tag displayed however. I am also getting errors in the browser console. Please can someone suggest what to do? Please see my code below,</p>

<p>I access the route <a href="http://localhost:8081/about" rel="nofollow noreferrer">http://localhost:8081/about</a></p>

<p>Layout.jsx</p>

<pre><code>var React = require('react');
var Helmet = require('react-helmet');

var Layout = React.createClass({
    displayName: 'Layout',
    render: function() {
        "use strict";
        let head = Helmet.rewind();
        return (
            &lt;html&gt;
                &lt;head&gt;
                  &lt;link rel='stylesheet' href='/css/application.css' /&gt;
                  {head.title.toComponent()}
                  {head.meta.toComponent()}
                  {head.link.toComponent()}
                &lt;/head&gt;
                &lt;body &gt;
                    {this.props.children}

                &lt;/body&gt;
            &lt;/html&gt;
        );
    }
});

module.exports= Layout;
</code></pre>

<p>About.jsx</p>

<pre><code>var React = require('react');
var Helmet = require('react-helmet');

module.exports = React.createClass({
    displayName: 'About',
    render: function() {
        return (
          &lt;div&gt;
            &lt;Helmet
              title="About Title"
              meta={[
                  {"name": "about description", "content": "about Helmet application"}
              ]}
            /&gt;
            &lt;p&gt;
                Current: &lt;strong&gt;About&lt;/strong&gt;
            &lt;/p&gt;
          &lt;/div&gt;
        );
    }
});
</code></pre>

<p>Please find the attachments,
<a href="https://i.stack.imgur.com/mjA5E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mjA5E.png" alt="enter image description here"></a>
<a href="https://i.stack.imgur.com/tHVXW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tHVXW.png" alt="enter image description here"></a></p>

<p>Please suggest what to do, reply if any other information needed.</p>