Hi I need help to properly write the code full working for Datepicker: https://reactdatepicker.com/ I have trouble importing the css and after spending too much time I decided to just grab the code. Please help make it work and forgive me as I am new to react. Thanks.
import DatePicker from "react-datepicker";
function DatePicker() {
const [startDate, setStartDate] = useState(new Date());
const MyContainer = ({ className, children }) => {
return (
<div style={{ padding: "16px", background: "#216ba5", color: "#fff" }}>
<CalendarContainer className={className}>
<div style={{ background: "#f0f0f0" }}>
What is your favorite day?
</div>
<div style={{ position: "relative" }}>{children}</div>
</CalendarContainer>
</div>
);
};
return (
<DatePicker
selected={startDate}
onChange={(date) => setStartDate(date)}
calendarContainer={MyContainer}
/>
);
};
export default DatePicker```
