title: JSX element type 'CounterDisplay' is not a constructor function for JSX elements. Types of property 'refs' are incompatible
body: <p>I updated to typescript to version 2.1.6 from version 1.6 and the typings for react to version 15.0.15. If I compile the typescript files via gulp or tsc everything is working fine and there are no error messages. However Visual Studio 2017 RC as well as Sublime Text complain about the typescript code.</p>
  
  <p>Here is some of my code. This does not produce any errors.</p>
  
  <pre><code>interface CounterDisplayProps {
      loading: boolean;
      first: number;
      last: number;
      total: number;
  }
  
  class CounterDisplay extends React.Component&lt;CounterDisplayProps, {}&gt; {
      render() {
          var { props } = this;
          return (
              &lt;div className="Counter"&gt;
                  Showing {props.first} to {props.total ? Math.min(props.last, props.total) : props.last} of {props.loading ? "?" : props.total} entries
              &lt;/div&gt;
      )}
  }
  </code></pre>
  
  <p>The render function of another component contains:</p>
  
  <pre><code>&lt;CounterDisplay 
      loading={props.counterIsLoading}
      first={props.skip + 1}
      last={props.skip + props.take}
      total={props.counter} /&gt;
  </code></pre>
  
  <p>The code above is producing the error that follwows in both Visual Studio 2017 as well as Sublime Text:</p>
  
  <pre><code>JSX element type 'CounterDisplay' is not a constructor function for JSX elements.
  Types of property 'refs' are incompatible.
  Type '{ [key: string]: ReactInstance; }' is not assignable to type '{
  [key: string]: Component&lt;any, any&gt;; }'.
  Index signatures are incompatible.
  Type 'ReactInstance' is not assignable to type 'Component&lt;any, any&gt;'.
  Type 'React.Component&lt;any, any&gt;' is not assignable to type 'React.Component&lt;any, any&gt;'. Two different types with this name exist, but they are unrelated.
  Types of property 'refs' are incompatible.
  Type '{ [key: string]: ReactInstance; }' is not assignable to type '{
  [key: string]: Component&lt;any, any&gt;; }'.
  Index signatures are incompatible.
  Type 'ReactInstance' is not assignable to type 'Component&lt;any, any&gt;'.
  Type 'React.Component&lt;any, any&gt;' is not assignable to type 'React.Component&lt;any, any&gt;'. Two different types with this name exist, but they are unrelated.
  </code></pre>
  
  <p>Visual Studio and Sublime Text are complaining whenever I use a react component, that I wrote myself. I'm wondering why this code working when using the compiler but not when using the IDE. Can you help me?</p>