How to include bootstrap?
See original GitHub issueI am building an app using create-react-app and bootstrap. But I am not able to import bootstrap in my app. I tried including it in index.html like this:
<script src="lib/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="lib/css/bootstrap.min.css">
but it does not work. So, how can I import bootstrap in my app? Thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:22 (5 by maintainers)
Top Results From Across the Web
Introduction - Bootstrap
Looking to quickly add Bootstrap to your project? Use jsDelivr, provided for free by the folks at jsDelivr. Using a package manager or...
Read more >Bootstrap Get Started - W3Schools
Bootstrap is a free front-end framework for faster and easier web development; Bootstrap includes HTML and CSS based design templates for typography, forms, ......
Read more >How to add Bootstrap to HTML (Step by Step Guide)
Method 2: Downloading files locally ... Another way of importing Bootstrap to HTML is to directly download the files locally to your HTML...
Read more >How to Add Bootstrap in a Project ? - GeeksforGeeks
Under the folder, copy the extracted files downloaded from bootstrap. Under the head tag of the HTML file, the CSS needs to be...
Read more >How to add Bootstrap to your project - Simple Dev
To add Bootstrap to an existing project, you can add the required link tag to your head element and the script tags right...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@taion answer helped me, but maybe anyone are interested in a bit more detailed instruction so here it goes… 😉
I’m using React 15.5.4…
index.js
App.js
For the CSS it should probably be
BTW.
Bootstrap ships built CSS in their npm package.