ReactJS "TypeError: Cannot read property 'array' of undefined" : <p>While running this code I got error on the first line on <code>App.propTypes</code> </p>

<blockquote>
  <p>TypeError: Cannot read property 'array' of undefined</p>
</blockquote>

<p>Code:</p>

<pre><code>  class App extends React.Component {
   render() {
      return (
         &lt;div&gt;
            &lt;h3&gt;Array: {this.props.propArray}&lt;/h3&gt;
            &lt;h3&gt;Array: {this.props.propBool ? "true" : "false"}&lt;/h3&gt;
            &lt;h3&gt;Func: {this.props.propFunc(3)}&lt;/h3&gt;
            &lt;h3&gt;Number: {this.props.propNumber}&lt;/h3&gt;
            &lt;h3&gt;String: {this.props.propString}&lt;/h3&gt;
            &lt;h3&gt;Object: {this.props.propObject.objectName1}&lt;/h3&gt;
            &lt;h3&gt;Object: {this.props.propObject.objectName2}&lt;/h3&gt;
            &lt;h3&gt;Object: {this.props.propObject.objectName3}&lt;/h3&gt;
         &lt;/div&gt;
      );
   }
}


App.propTypes = {
   propArray: React.PropTypes.array.isRequired, //I got error over here
   propBool: React.PropTypes.bool.isRequired,
   propFunc: React.PropTypes.func,
   propNumber: React.PropTypes.number,
   propString: React.PropTypes.string,
   propObject: React.PropTypes.object
}

App.defaultProps = {
   propArray: [1,2,3,4,5],
   propBool: true,
   propFunc: function(e){return e},
   propNumber: 1,
   propString: "String value...",

   propObject: {
      objectName1:"objectValue1",
      objectName2: "objectValue2",
      objectName3: "objectValue3"
   }
}
</code></pre>

<p>I tried to search but I didn't get the correct solution.</p>
