What about react-datepicker?

Good day! Try to set the datepicker on react/redux and didn't quite work out.
Using this package .
At this point I want to just bring a simple datepicker.
Code
import DatePicker from 'react-datepicker';
import moment from 'moment';

const DayPickerSection = ({}) => {
 return (
the <div>
 <datepicker selected="{moment()}/">
</datepicker></div>
);
};

export default DayPickerSection;


Input is displayed with the current date and numbers in a column. What's the problem?
How to use it properly with redux ? Perhaps you have any examples?
July 2nd 19 at 18:16
2 answers
July 2nd 19 at 18:18
Solution
Probably forgot to connect the file with styles.

require('react-datepicker/dist/react-datepicker.css');
ERROR in ./~/react-datepicker/dist/react-datepicker.css
Module parse failed: C:\OpenServer\domains\react-currency-convert\node_modules\react-datepicker\dist\react-datepicker.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1:0)

Oshibka if connect. - edwina0 commented on July 2nd 19 at 18:21
Hooked styles so require('../../node_modules/react-datepicker/dist/react-datepicker.css');
nothing has changed. - edwina0 commented on July 2nd 19 at 18:24
styles started to work or not?) In the first post is written You may need an appropriate loader to handle this file type, the translation: you need a loader. Configure the css loader in webpage. - dannie.Stehr commented on July 2nd 19 at 18:27
: take.ms/132aD classes appeared styles? - dannie.Stehr commented on July 2nd 19 at 18:30
: set up the loader, hooked up via the require styles, but not those styles are loaded... not the same classes - edwina0 commented on July 2nd 19 at 18:33
: give an example in the screenshot. - dannie.Stehr commented on July 2nd 19 at 18:36
Threw the screen. - edwina0 commented on July 2nd 19 at 18:39
July 2nd 19 at 18:20
Looks like datepicker
dba19dcb55f549c9a294bd4a1f8e1644.png
Styles that podgorici
817208ae676f4f86a490669ce543aaf3.png
Yes, some problem with the loader. Check the settings, here's my config (see the css section, there are 2 lines total): pastebin.com/an4Sgn0k and here is the screenshot with the connection of the styles take.ms/A9YmF , and finally a screen with the styles in the console of chrome: take.ms/E437v - edwina0 commented on July 2nd 19 at 18:23
: Yes, a little changed the loader and it worked, thank you.)
Further, the value of dispatch-Ohm should be transferred into action? (For example the selected date).
And don't tell me how to properly put onChange to do this? - edwina0 commented on July 2nd 19 at 18:26

Find more questions by tags ReactJavaScriptRedux