title: How do I set return type to React.StatelessComponent?
body: <p>This is working:</p>
  
  <pre><code>import * as React from 'react';
  
  export default (props: any): JSX.Element =&gt; {
    return (
      &lt;h1&gt;{props.children}&lt;/h1&gt;
    )
  }
  </code></pre>
  
  <p>And this is throwing an error:</p>
  
  <pre><code>import * as React from 'react';
  
  export default (props: any): React.StatelessComponent =&gt; {
    return (
      &lt;h1&gt;{props.children}&lt;/h1&gt;
    )
  }
  </code></pre>
  
  <p>How do I set the return type to <code>React.StatelessComponent</code>?</p>