title: Property 'Component' does not exist on type 'typeof React'
body: <p><a href="https://i.stack.imgur.com/5XQpX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5XQpX.png" alt="enter image description here"></a>After creating react-typescript project using create-react-app I have hightlighted in VS Code that, </p>
  
  <pre><code>Property 'Component' does not exist on type 'typeof React'.
  </code></pre>
  
  <p>My class looks like this: </p>
  
  <pre><code>import * as React from "react";
  
  interface Props {
      number: number;
  }
  
  interface State {
      count: number;
  };
  
  export default class MyClass extends React.Component&lt;Props, State&gt; {
      constructor(public props: Props) {
          super(props);
          this.state = {
              count: 1
          }
      }
      render () {
          return (
            &lt;div&gt;
              {this.state.count}
            &lt;/div&gt;
          );
        }
  }
  </code></pre>
  
  <p>if I change the import statement to import React, { Component } from "react";
  I am getting </p>
  
  <pre><code>Module '".../node_modules/@types/react/index"' has no exported member 'Component'
  </code></pre>
  
  <p>I have installed @types/react @types/react-dom. Any idea why VS code can't find this module?</p>