Install NPM package
npm install react-bootstrap
You can include the stylesheets in at least three different ways.
Include link to CDN. For create-react-app projects, this can go in
<link rel="stylesheet" href="https://firstname.lastname@example.org/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
You can include the following in a root file (e.g.,
Configure Sass in your project if you haven’t already.
bootstrap NPM package:
npm i bootstrap
Include the Bootstrap Sass entry file from the NPM package by including the following in a root Sass file (e.g.,
/* The following line can be included in a src/App.scss */ @import "~bootstrap/scss/bootstrap";
Make sure your root Sass file is imported in your app.