react-d3 / react-d3-basic

Basic d3 charts in React.js, only include: line, bar, pie, scatter, area charts.
http://reactd3.org/docs/basic
221 stars 117 forks source link

Added Support for React16.4 by removing dependancy of React's interna… #58

Open ashwinkjoseph opened 6 years ago

ashwinkjoseph commented 6 years ago

…l Prop Types and using prop-types package and fixed some issues with webpack config file and added webpack@3.0.0 in the package.json

As of today, I was not able to use the library with react 16.4.x as React has removed PropTypes from its core library in favor of a separate Library.

Since this change hasn't been accommodated yet into this library I have removed the dependency on Reacts built in PropTypes and have required in prop-types separately from NPM

I also found that webpack was not in the devDependancies or the dependencies and have added the version compatible with your config file to the list in package.json

Also, I found some issues with your webpack.prod.config.js when I tried running webpack@3.0.0 so I have made the changes to make it work with webpack@3.0.0