One thing to note is that bootstrap tends to include !important
in almost everything. To remove all instances of it, you'll have to opt for installing the npm package instead of relying on a CDN (as you're currently doing). Here's what you need to do:
npm install bootstrap
or yarn add bootstrap
Afterward, create an app.scss file (the name doesn't really matter) and insert these lines:
$enable-important-utilities: false; //this turns off !important
@import "../../node_modules/bootstrap/scss/bootstrap";
Then, import the aforementioned app.scss
file into your index.js
file:
import './app.scss'
Upon running npm start
(or whichever command you use), a new css file should be generated for utilization. You might have to set up sass if it isn't already part of your project. However, that goes beyond the scope of this explanation.