Bootstrap in React

bootstrap in react js



Bootstrap 5 in React 

Compiled CSS and JS

Download ready-to-use compiled code for Bootstrap v5.1.3 to easily drop into your project, which includes:

  • Compiled and minified CSS bundles (see CSS files comparison)
  • Compiled and minified JavaScript plugins (see JS files comparison)

This doesn’t include documentation, source files, or any optional JavaScript dependencies like Popper.

import, bootstrap.min.css into your App

 
  import React from 'react';
  import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
 



React-Bootstrap


React-bootstrap is 
a front-End Stylesheet library. this library builds with two libraries one is react. js and secondly bootstrap. ... js in this way you use react-bootstrap. why because react-bootstrap provide all bootstrap functionality in our react js project

first install this react-bootstrap by using below mentioned link



then needs to install, this CDN via jsDelivr 
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>