react-d3 / react-d3-core

Core components for reusability.
http://reactd3.org/docs/core
157 stars 50 forks source link

Accessing PropTypes via the main React package is deprecated. #49

Open gnunua opened 7 years ago

gnunua commented 7 years ago

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

in LineChart.js still using React.propTypes instead of exporting PropTypes from prop-types

jeroenptrs commented 6 years ago

proptypes has been taken out of react's core completely. It needs to be imported via 'prop-types' package. React Docs

jeroenptrs commented 6 years ago

I opened a PR, but it seems the problem is all over the react-D3 ecosystem.