title: React stateless component and typechecking React.PropTypes.element
body: <p><a href="https://facebook.github.io/react/docs/typechecking-with-proptypes.html" rel="nofollow noreferrer">Typechecking guide</a> describe</p>
  
  <blockquote>
    <p>// A React element.<br>
     optionalElement: React.PropTypes.element,</p>
  </blockquote>
  
  <p>This is not working for checking for stateless component (defined as function).</p>
  
  <p>I am using</p>
  
  <pre><code>PropTypes.oneOfType([PropTypes.element, PropTypes.func])
  </code></pre>
  
  <p>but it is too verbose, and this doesn't limit input only by functions which is stateless components.</p>
  
  <p>Does another <code>PropTypes.&lt;test&gt;</code> exist to match both kinds of React Component?</p>