title: Reactj, typescript Property 'setState' is missing in type
body: <p>I'm getting a ts error from my react component. The component is running fine, building etc, however typescript is showing an error inside the ide. Not sure how i need to declare this to remove the error. I've tried to create a setState method inside the component itself, but this was giving even more errors.</p>
  
  <blockquote>
    <p>Error:(15, 19) TS2605:JSX element type 'Home' is not a constructor
    function for JSX elements.   Property 'setState' is missing in type
    'Home'.</p>
  </blockquote>
  
  <p>"typescript": "^2.3.4",</p>
  
  <p>"react": "^15.5.4",</p>
  
  <p>"react-dom": "^15.5.4",</p>
  
  <p>!----</p>
  
  <pre><code>export class App extends React.Component&lt;Props, State&gt; {
    public state: State
    public props: Props
  
   constructor(props: Props) {
    super(props)
    this.state = {
      view: &lt;Home /&gt;, &lt;&lt;&lt;&lt;
      } 
  </code></pre>
  
  <p>-- the rest removed for brevity</p>
  
  <pre><code>export class Home extends React.Component&lt;Props, State&gt; {
  public state: State;
  public props: Props;
  
  constructor(props: Props) {
      super(props)
  
  }
    public render() {
      return &lt;h1&gt;home&lt;/h1&gt;
    }
  }
  </code></pre>