Usage with React, Vue, and Angular
While the Bootstrap CSS can be used with any framework, the Bootstrap JavaScript is not fully compatible with JavaScript frameworks like React, Vue, and Angular which assume full knowledge of the DOM. Both Bootstrap and the framework may attempt to mutate the same DOM element, resulting in bugs like dropdowns that are stuck in the “open” position. A better alternative for those using this type of frameworks is to use a framework-specific package instead of the Bootstrap JavaScript. Here are some of the most popular options: React: React Bootstrap Try it yourself! Download the source code and working demo for using Bootstrap with React, Next.js, and React Bootstrap from the twbs/examples repository . You can also open the example in StackBlitz . Vue: BootstrapVue (Bootstrap 4) Vue 3: BootstrapVueNext (Bootstrap 5, currently in alpha) Angular: ng-bootstrap