Categories
React Answers

How to install React Bootstrap?

Spread the love

To install React Bootstrap, we run

npm install react-bootstrap bootstrap

Then in index.js, we add

import 'bootstrap/dist/css/bootstrap.min.css';

to import the CSS.

And in our components, we can add

import { Navbar, Nav, Button } from "react-bootstrap";

to import the components we need.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *