pushtell / react-bootstrap-date-picker

React-Bootstrap based date picker.
MIT License
347 stars 195 forks source link

Import bootstrap components from lib folder #86

Closed bpugh closed 7 years ago

bpugh commented 7 years ago

From the react-bootstrap docs:

If you install React-Bootstrap using npm, you can import individual components from react-bootstrap/lib rather than the entire library. Doing so pulls in only the specific components that you use, which can significantly reduce the size of your client bundle.

Since datepicker only relies on a few bootstrap components we can save up to ~115kb by changing the import syntax so that we don't require the entire react-bootstrap library. Thoughts?