The CSS is directly imported from node_modules. Instead of importing it, you should allow us to import it ourselves. This will allow us to use unpkg.com to include the css file or use our own css parsers.
This also makes the library incompatible with the popular NextJS, here's why:
https://github.com/zeit/next.js/blob/master/errors/css-npm.md
@aladinflux why did you close this issue? I think this is valid.
@matthewLeFevre, import from 'entry.nostyle'
import DatePicker from 'react-date-picker/dist/entry.nostyle'
For the record, next major version will ship with no styles by default - you'll have to import them by yourself.
Most helpful comment
For the record, next major version will ship with no styles by default - you'll have to import them by yourself.