How to prevent building app if component prop types are invalid? : <p>Here is a example for PropTypes:</p>

<pre><code>import PropTypes from 'prop-types';

class Greeting extends React.Component {
  render() {
    return (
      &lt;h1&gt;Hello, {this.props.name}&lt;/h1&gt;
    );
  }
}

Greeting.propTypes = {
  name: PropTypes.string
};
</code></pre>

<p>Now I use <code>Greeting</code> component as:</p>

<pre><code>&lt;Greetings otherProp="this is a invalid prop" /&gt;
</code></pre>

<p>In this case, when I build app for deployment, no error is thrown &amp; app is successfully built. But it give error in runtime &amp; breaks down.</p>

<p>How can I add check to remove this problem &amp; ensure no components are being built using wrong prop types.</p>
