reactjsreact-datetime

react-dateTime picker Css not working


I am using react-dateTime Picker. react-datetime picker's css is not working.can any one tell me why it look like. It looks like this. enter image description here

and second one this following function is working but css is working.

var yesterday = Datetime.moment().subtract( 1, 'day' );
var valid = function( current ){
    return current.isAfter( yesterday );
};

enter image description here


Solution

  • @Iggy add the following code in your webpack.config file. 'script-loader!react-datetime/dist/react-datetime.min.js',

     entry: [
           'script-loader!jquery/dist/jquery.min.js',
           'script-loader!foundation-sites/dist/foundation.min.js',
           'script-loader!react-datetime/dist/react-datetime.min.js',//add this line in your webpack.config file
          './app/app.jsx'],
          externals:{
            jquery:'jQuery'
    
          },