title: Import class from other file (same namespace) in typescript + react
body: <p>I have two files comment.tsx and commentlist.tsx</p>
  
  <p>comment.tsx looks like this:</p>
  
  <pre><code>/// &lt;reference path="./typings/react/react.d.ts" /&gt;
  /// &lt;reference path="./typings/react/react-dom.d.ts" /&gt;
  /// &lt;reference path="interfaces.d.ts" /&gt;
  
  import * as React from "react";
  import * as ReactDOM from "react-dom";
  
  namespace W.T.F {
      export class Comment extends React.Component&lt;ICommentData, {}&gt;{
          constructor(props: ICommentData) {
              super(props);
          }
  
          public render() {
              return (
                  &lt;div className="comment"&gt;
                  &lt;h2 className="commentAuthor"&gt;{this.props.Author}&lt;/h2&gt;
                  &lt;span&gt;{this.props.Text}&lt;/span&gt;
                      &lt;/div&gt;
              );
          }
      }
  }
  </code></pre>
  
  <p>and commentlist.tsx</p>
  
  <pre><code>/// &lt;reference path="./typings/react/react.d.ts" /&gt;
  /// &lt;reference path="./typings/react/react-dom.d.ts" /&gt;
  /// &lt;reference path="comment.tsx" /&gt;
  /// &lt;reference path="interfaces.d.ts" /&gt;
  
  import * as React from "react";
  import * as ReactDOM from "react-dom";
  import Comment = W.T.F.Comment;
  
  namespace W.T.F {
      export class CommentList extends React.Component&lt;ICommentListData, {}&gt;{
          public render() {
              var commentNodes = this.props.Data.map(function (comment: ICommentData) {
                  return (
                      &lt;Comment Author={comment.Author} Text={comment.Text}&gt;{comment.Text}&lt;/Comment&gt;
                  );
              });
              return (
                  &lt;div className="commentList"&gt;
                      {commentNodes}
                  &lt;/div&gt;
              );
          }
      };
  }
  </code></pre>
  
  <p>compiling these files brings the error </p>
  
  <p>commentlist.tsx(8,24) TS2305    Module 'W.T.F' has no exported member 'Comment'.</p>
  
  <p>What is wrong in my source?</p>
  
  <p>What is the best way to import other react classes (contained in namespaces) from other files?</p>