title: reactjs -- Uncaught TypeError: Cannot read property 'func' of undefined
body: <p>I am getting this error,please help me.</p>
  
  <pre><code>func = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].func,
  object = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].object,
  arrayOf = __WEBPACK_IMPORTED_MODULE_0_react__["PropTypes"].arrayOf
  </code></pre>
  
  <p>This is package.json</p>
  
  <pre><code>"prop-types": "^15.6.0",
  "react": "^16.1.0",
  "react-dom": "^16.1.0",
  "react-redux": "^5.0.6",
  "react-router": "^3.2.0",
  "react-router-dom": "^4.2.2",
  "react-router-native": "^4.2.0",
  </code></pre>
  
  <p>This is the code</p>
  
  <pre><code>LoginForm.propTypes = {
    onSubmit: PropTypes.func.isRequired,
    btnText: PropTypes.string.isRequired,
    data: PropTypes.object.isRequired
  }
  </code></pre>