TypeScript ReactDOM Property 'type' is missing on component
<p>Getting the following error:</p>

<pre><code>Error   TS2345  Argument of type 'typeof SomeComponent' 
is not assignable to parameter of type 'ReactElement&lt;{}&gt;'.
Property 'type' is missing in type 'typeof SomeComponent'.
</code></pre>

<p>Got the following code typescript code:</p>

<pre><code>import * as React from 'react';
import * as ReactDOM from 'react-dom';

interface IProps{}    
interface IState {}

class SomeComponent extends React.Component&lt;IProps, IState&gt; {
    render() {
        return &lt;div /&gt;;
    }
}

var component = SomeComponent;
var root = document.getElementById("root");

ReactDOM.render(component , root);
</code></pre>

<p>I tried the following:</p>

<pre><code>class SomeComponent extends React.Component&lt;IProps, IState&gt; {
    render() {
        return &lt;div /&gt;;
    }

    get type() {
        return "test";
    }
}
</code></pre>