Install and Use Bootstrap CSS with React

Boostrap is an amazing css framework, using which we can easily design our React app. Using the bootstrap framework is very easy. Lets check how to install bootstrap in our react app project. How to use boostrap in react code – importing and using bootstrap classes.

Installing Boostrap css framework in React App

npm i --save bootstrap

Importing and Using Boostrap inside react Components

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

Sample test code:
<button className="btn btn-success">Test</button>

About the Author: smartcoder

You might like

Leave a Reply

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