score:0

try default import:

import datepicker from 'react-bootstrap-date-picker';

score:0

you are using curly braces which is not required. try this

import datepicker as bsdatepicker from 'react-bootstrap-date-picker';

curly braces are used for normal imports (imports which are not default imports) while if we import something without curly braces, it means that it is default import.

hope that this link will help you to understand further.

https://mindsers.blog/post/javascript-named-imports-vs-default-imports/


Related Query

More Query from same tag