title: react client side rendering with django
body: <p>I am integrating reactjs with my django, I have done setup and even able to render page from server too, but in client side when it comes to rendering and event handling and attaching, I am getting error "Uncaught ReferenceError: MainContainer is not defined".
  I am totally lost here, please help me.</p>
  
  <p><a href="https://i.stack.imgur.com/1iuO4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1iuO4.png" alt="error in index.html"></a></p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;link rel="stylesheet" type="text/css" href="static/src/css/bootstrap.min.css"/&gt;
          &lt;link rel="stylesheet" type="text/css" href="static/src/css/style.less"/&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;script&gt;
                    // var INITIAL_DATA = JSON.parse('{{ serialized_value|safe }}')
                      var INITIAL_DATA = {{ serialized_value|safe }}
          &lt;/script&gt;
          &lt;div id="app"&gt;{{ rendered|safe }}&lt;/div&gt;
          &lt;script type="text/javascript" src="static/build/index_webpack.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              // ReactDOM.render(React.createFactory(MainContainer)({isOpen: false, props: {'freeShipping': free_shipping_message_new,'navigationBar': [loose_leaf_content]}}), document.getElementById('app'));
              ReactDOM.render(MainContainer({isOpen: false, props: {'freeShipping': free_shipping_message_new,'navigationBar': [loose_leaf_content]}}), document.getElementById('app'));
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>