Datepicker for rectal belt

I am using the react-strapnpm package to use Bootstrap 4 components in a React application.

When I try to add datepicker react-bootstrap-date-picker

npm install --save react-bootstrap-date-picker

then try using it in my component:

var DatePicker = require("react-bootstrap-date-picker");

I get an error

Error. / ~ / React-bootstrap-date-picker / lib / index.js

Module not found: "reaction-bootstrap / lib / Button" in C: \ Users \ y \ Desktop \ Code \ test \ node_modules \ reaction-bootstrap-date-picker \ lib

@. / ~ / react-bootstrap-date-picker / lib / index.js 15: 14-51

Is it because it is react-bootstrap-date-pickernot compatible with react-strap? In this case, what npm packages should be installed for bootstrap 4 components so that the date module can work?

+4
source share
1 answer

response-bootstrap-date-picker -, - bootstrap3. responsestrap bootstrap4 .

response-widgets DateTimePicker.

+2

Source: https://habr.com/ru/post/1689213/


All Articles