Integrate bootstrap to react application

Dhruva
1 min readSep 4, 2019

--

This blog simply shows how to integrate bootstrap in your react application

First install bootstrap in your react app, using below command

npm install bootstrap react-bootstrap --save

This installs bootstrap to your app and adds it to your package.json file. In your node_modules folder you can check if bootstrap is correctly installed.

node_modules 
- bootstrap
- dist
- css

In the index.js file of your react app add the following line to include bootstrap css into your app

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

The above line will include bootstrap css for the whole react app and tada you can use the css components and react-bootstrap components in your app directly.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response