title: is there any way to disable or speed up React PropType validation in development mode?
body: <p>As far as I know the only way to disable React PropType validation is to uglify React with <code>process.env.NODE_ENV</code> defined to be <code>'production'</code>.</p>
  
  <p>However, I would like to use development mode without runtime PropType validation for the following reasons:</p>
  
  <ul>
  <li>They slow down my app significantly.  PropType validation is the top offender in profiling results because:
  
  <ul>
  <li>I have a fairly deep component hierarchy with PropType validation at multiple levels (yes I do have proper shouldComponentUpdate etc.)</li>
  <li>I'm using Redux, which means all updates start at or near the top of the hierarchy</li>
  <li>I have mouse drag interactions which strive for 30 updates per second</li>
  </ul></li>
  <li>I still want to see all other React warnings and errors, which would also get disabled in production mode.</li>
  <li>Flowtype can apparently statically validate PropTypes in a lot of cases anyway.</li>
  </ul>
  
  <p>If nothing else I could create a transformer for <code>babel-plugin-react-transform</code> that strips away all components' <code>propTypes</code> (or perhaps only those of components I've annotated in a certain way), but I'm wondering if there's a simpler way to do it, because React <em>could</em> easily provide a compile-time flag to disable PropType validation.</p>
  
  <p><strong>UPDATE</strong>: that babel plugin already exists (<a href="https://www.npmjs.com/package/babel-plugin-react-remove-prop-types" rel="noreferrer">https://www.npmjs.com/package/babel-plugin-react-remove-prop-types</a>)</p>