Charts and Console(4)Display and Enhancement
My ReactJS Projects
Warning:
lowPriorityWarning.js:40 Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs
Solutions:
https://facebook.github.io/react/warnings/dont-call-proptypes.html
https://stackoverflow.com/questions/43303761/accessing-proptypes-via-the-main-react-package-is-deprecated
Change
import React, { PropTypes } from 'react’;
To
import React from 'react';
import PropTypes from 'prop-types';
Upgrade version of modules in package.json
"react-bootstrap-table": "^4.0.3",
"react-dom": "^15.6.1",
"react": "^15.6.1",
"prop-types": "15.5.10",
Some other enhancement is in project price-monitor-console
References:
http://allenfang.github.io/react-bootstrap-table/docs.html#tdAttr
https://github.com/AllenFang/react-bootstrap-table/issues/1411
https://github.com/AllenFang/react-bootstrap-table/issues/204
Charts and Console(4)Display and Enhancement
猜你喜欢
转载自sillycat.iteye.com/blog/2393788
今日推荐
周排行