title: Server-side rendering of component fails using ReactJS.NET
body: <p>I'm currently trying to get some ReactJS-stuff (from different tutorials) to be rendered on server-side using 'ReactJS.NET'.</p>
  
  <p>However, I always get the following message:</p>
  
  <blockquote>
    <p>Could not find a component named 'CommentBox'. Did you forget to add it to App_Start\ReactConfig.cs?</p>
  </blockquote>
  
  <p>Looking at the code <a href="https://github.com/lukemcgregor/SeoFriendlySinglePageApp" rel="nofollow noreferrer">here</a> it seems to be pretty straight-forward.</p>
  
  <p>My ReactConfig.cs:</p>
  
  <pre><code>public static class ReactConfig
  {
      public static void Configure()
      {
          ReactSiteConfiguration.Configuration
              .AddScript("~/Scripts/dist/CommentBox.js");
      }
  }
  </code></pre>
  
  <p>I can't see the point what I am doing wrong here as I thought I simply need to add the (via webpack) generated <code>CommentBox.js</code> to the config and done.</p>
  
  <p>In my View I simply try calling <code>@Html.React("CommentBox",new {})</code> at which point the exception is thrown.</p>
  
  <p>This is the code which can be found in the generated javascript-file:</p>
  
  <pre><code>var CommentBox = (function (_super) {
      __extends(CommentBox, _super);
      function CommentBox() {
          return _super !== null &amp;&amp; _super.apply(this, arguments) || this;
      }
      CommentBox.prototype.render = function () {
          return __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("div", { className: "commentBox" },
              __WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("h1", null, "Comment-Box"),
              __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](CommentForm, null),
              __WEBPACK_IMPORTED_MODULE_0_react__["createElement"](CommentList, null));
      };
      return CommentBox;
  }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]));
  </code></pre>