Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add bootstrap by downloading in react js

// 1) Download bootstrap in react application by running this in terminal(CMD)
	npm install react-bootstrap bootstrap@5.1.3 
	/* @5.1.3 is optional. If you don't write then it will automatically download the latest version. */

// 2) By CDN Link  (Best and my way :)
    /* Copy this link and paste in public/index.html in header tag*/
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
	/* Copy this script tag and paste in public/index.html before closing body tag*/
    <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>

// For more information go to https://react-bootstrap.github.io/getting-started/introduction/
Source by react-bootstrap.github.io #
 
PREVIOUS NEXT
Tagged: #add #bootstrap #downloading #react #js
ADD COMMENT
Topic
Name
6+5 =