./src/models/products.js
Line 1: 'dva' is defined but never used no-unused-vars
./src/components/ProductList.js
Line 1: React.PropTypes is deprecated since React 15.5.0, use the npm module prop-types instead react/no-deprecated
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
解决办法:
npm
install
--save prop-types
或者yarn add prop-types
然后在需要使用PropTypes属性的地方引入:
import PropTypes from
'prop-types'
;