score:1

have you, at some point in your code, imported the datepicker's css? the documentation says:

you will also need to require the css file from this package (or provide your own).

score:1

you need to import the css file of react-datepicker with:

import "react-datepicker/dist/react-datepicker.css";

cf: https://github.com/hacker0x01/react-datepicker#installation


Related Query

More Query from same tag