在运行demo时出现大量: Warning: You are manually calling a React.PropTypes validation function for ...
在这个issue中找到了解决方法。
React 15.3.0中 对于 PropTypes有了变化 In a future major release of React, the code that implements PropType validation functions will be stripped in production.
然后demo中的React 版本设置的是 "react": "^15.2.1", 表示 15.2.1 <= version <= latest version,npm install时会去下载新版本, 把设置改成 "react": "~15.2.1" 就可以了,这表示 15.2.1<= version< 15.3, 不会去下载15.3以上版本了。
1万+

被折叠的 条评论
为什么被折叠?



