Now I am trying to use DatePicker in React-hooks project. But importing css from node-module make error.
import React, { useEffect,useState } from 'react';
import { useLocation } from 'react-router-dom';
import { useDispatch, useSelector } from 'react-redux';
import {Modal, Container, Row, Col, Button, } from 'react-bootstrap'
import { scheduleActions } from '../_actions';
import { Header } from '../_components/Header';
import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css"; //this make error.
......
How can I fix it? Thank you for any advice.