title: TypeScript - React pass Component as generics
body: <p>I'm trying to pass a component to base component as a generic.
  I know how to do that as props, but I'm trying to do that as a generic.</p>
  <p>What I want to do:</p>
  <pre><code>class ChildComponent extends ParentComponent&lt;SomeComponent&gt; {...}
  </code></pre>
  <p>and in the <code>ParentComponent</code> I want to render the <code>SomeComponent</code>:</p>
  <pre><code>class ParentComponent&lt;T&gt; extends Component&lt;React.ComponentProps&lt;T&gt;&gt; {
  
     render() {
        return &lt;T {...this.props}&gt;
     }
  
  }
  </code></pre>
  <p>But I can't make it to work.
  Is that possible?</p>