Answer the question
In order to leave comments, you need to log in
What's up with react-datepicker?
Good afternoon! I'm trying to install datepicker on react/redux and it doesn't quite work.
I am using this package .
For now, I just want to output a simple datepicker.
The code
import DatePicker from 'react-datepicker';
import moment from 'moment';
const DayPickerSection = ({}) => {
return (
<div>
<DatePicker selected={moment()}/>
</div>
);
};
export default DayPickerSection;
Answer the question
In order to leave comments, you need to log in
Probably forgot to include the file with styles.
require('react-datepicker/dist/react-datepicker.css');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question