3 ms·
That's the main reason why I've never used any Bootstrap JS. EDIT: Several commenters have clearly not noticed that I said "Bootstrap JS", and not "Bootstrap".
by SoSoRoCoCo 6y ago
That's the main reason why I've never used any Bootstrap JS.
EDIT: Several commenters have clearly not noticed that I said "Bootstrap JS", and not "Bootstrap". I still use Bootstrap (since v2), just not their Javascript.
- PedroBatista 6y agoReally? because of JQuery?
- unicornfinder 6y agoIt's a pretty valid reason if you're using another Javascript library such as React which uses a virtual DOM.
- mediascreen 6y agoReact Bootstrap seems really solid though: https://react-bootstrap.github.io/ https://react-bootstrap.github.io/
- fbnlsr 6y agoAnd there's Bootstrap-Vue for the vue folks. https://bootstrap-vue.org/ https://bootstrap-vue.org/
- SoSoRoCoCo 6y agoI'm not sure why I never bothered googling for this, but thank you.
- ChrisKingWebDev 6y agoI found React Bootstrap way more complicated than just using React and Bootstrap classes. React Bootstrap just adds more overhead to accomplish the same thing.
- SoSoRoCoCo 6y agoYes. I don't want to pull in yet another library that is essentially web programming patterns from the year 2000 just to make a modal dialog go "Bing!" Vue is all I need.
- slig 6y agoIt's perfectly fine to use Bootstrap without jQuery and use Vue/React or anything like that.
- SoSoRoCoCo 6y agoOf course: I use bootstrap, just not their JS.
- GordonS 6y agoI used Bootstrap 4 on a project recently, and thought I'd get away without jQuery - I almost did! The one place I needed it was for Bootstrap modal dialogs, to wire up open/close event handlers. I spent about an hour trying to figure out how to do it without jQuery, figured it was a deep rabbit hole, and caved...
- SoSoRoCoCo 6y agoIts funny how contentious modals are. Nearly every UX dev I know utterly despises them, yet I've seen at least two dozen UI implementations. Since I'm already neck-deep in VueJS, there are several easy ways to implement one, but now that I've seen bootstrap-vue, (several comments below), I may spend a few hours analyzing that over the holidays.
- mgkimsal 6y agoLots of niceties in bootstrap-vue; I've been digging in to over the last several months. Biggest "drawback" is it's all very tied to vue2 (naturally). I know vue3 has been a moving target for a while, but it's out now. I think it'll probably be next summer before BSV is ported to vue3 (which, IIRC, will also be tied to bootstrap 5). Big undertaking, for sure.