How can I style react-datepicker?
问题 I'm using webpack , react-datepicker and have managed to import its css with the provided css module. import 'react-datepicker/dist/react-datepicker-cssmodules.css The component looks fine and dandy, but now I want to make it full width like the time element above it. Looking at the CSS, what it needs is for the react-datepicker-wrapper element that gets dynamically added by the library to have display: block . Any modifications I make to react-datepicker-wrapper in my own css does nothing.