import 'bootstrap/dist/css/bootstrap.min.css';. I spent ages wondering why it was not working despite having imported react-bootstrap.
Skiptocontent
{{message}}
react-bootstrap
/
react-bootstrap
Public
Notifications
Fork
3.3k
Star
20.5k
Code
Issues
133
Pullrequests
30
Actions
Projects
1
Wiki
Security
Insights
More
Code
Issues
Pullrequests
Actions
Projects
Wiki
Security
Insights
Newissue
Haveaquestionaboutthisproject?SignupforafreeGitHubaccounttoopenanissueandcontactitsmaintainersandthecommunity.
Pickausername
EmailAddress
Password
SignupforGitHub
Byclicking“SignupforGitHub”,youagreetoourtermsofserviceand
privacystatement.We’lloccasionallysendyouaccountrelatedemails.
AlreadyonGitHub?
Signin
toyouraccount
Jumptobottom
Stylesnotapplied?
#2300
Closed
scheung38openedthisissue
Oct24,2016
·14comments
Closed
Stylesnotapplied?
#2300
scheung38openedthisissue
Oct24,2016
·14comments
Comments
Copylink
scheung38
commented
Oct24,2016
•
edited
Afterinstalling:
$npminstallreact-bootstrap--save
myproduct.js
import{Button}from'react-bootstrap';
exportdefaultclassProductAddFormextendsComponent{
render(){
return(
Submit
);
}
}
Butnostylingbeingapplied?
Thetextwasupdatedsuccessfully,buttheseerrorswereencountered:
Copylink
Member
jquense
commented
Oct24,2016
Hithere,youneedtoincludethebootstrapcss.Isuggestreadingthroughthegettingstartedguide:http://react-bootstrap.github.io/getting-started.html
👍
5
👎
10
😕
11
Sorry,somethingwentwrong.
jquense
closedthis
Oct24,2016
Copylink
shehryar96
commented
Jul17,2018
@jquense404erroratthislink
http://react-bootstrap.github.io/getting-started.html
😕
1
Sorry,somethingwentwrong.
Copylink
maneshom
commented
Mar5,2019
@shehryar96Thelinkchangedtohttps://react-bootstrap.github.io/getting-started/introduction
.Addthestylesheetsproperly.Itwillworks
👍
5
Sorry,somethingwentwrong.
Copylink
Msey
commented
Jun7,2019
IusedthisguidebutItdoesn'twork.
Sorry,somethingwentwrong.
Copylink
tamangsuresh
commented
Jul11,2020
Iusedittooitsnotworkingformetoo.
Sorry,somethingwentwrong.
Copylink
Faizanamin
commented
Aug6,2020
IusedthisguidebutItdoesn'twork.
Sorry,somethingwentwrong.
Copylink
AlexanderWatts
commented
Aug11,2020
Inthedocsitsaysthatbootstrapdoesnotcomewithanycsssoyouwillneedtoimportitintoyourmodule:
import'bootstrap/dist/css/bootstrap.min.css';
Ispentageswonderingwhyitwasnotworkingdespitehavingimportedreact-bootstrap
Hopethishelps
👍
15
🎉
6
❤️
2
🚀
3
Sorry,somethingwentwrong.
Copylink
alexanderwhatley
commented
Aug12,2020
Itriedeverythingintheguide,andit'snotworking:(
Sorry,somethingwentwrong.
Copylink
BryanHo10
commented
Aug14,2020
Afterinstallingbootstrapalongwithreact-bootstrap,thestylingwillapply.
Sorry,somethingwentwrong.
Copylink
kshiraishi22
commented
Aug19,2020
thankyou!adding:import'bootstrap/dist/css/bootstrap.min.css'workedformetoo.
Sorry,somethingwentwrong.
Copylink
GabrielNSD
commented
Nov30,2020
Inthedocsitsaysthatbootstrapdoesnotcomewithanycsssoyouwillneedtoimportitintoyourmodule:
import'bootstrap/dist/css/bootstrap.min.css';
Ispentageswonderingwhyitwasnotworkingdespitehavingimportedreact-bootstrap
Hopethishelps
Thissolvedmyproblem!!Thankyoualot!!!
Sorry,somethingwentwrong.
Copylink
sumukhbharadwaj
commented
Jun2,2021
•
edited
ByImportingimport'bootstrap/dist/css/bootstrap.min.css';ItOverridesOtherCustomcssfiles.
Sorry,somethingwentwrong.
Copylink
mutua-muvevi
commented
Jul29,2021
Iamgettingamodulenotfoundwhenitypeimport'bootstrap/dist/css/bootstrap.min.css';
Sorry,somethingwentwrong.
Copylink
Pookacz
commented
Aug1,2021
Inthedocsitsaysthatbootstrapdoesnotcomewithanycsssoyouwillneedtoimportitintoyourmodule:
import'bootstrap/dist/css/bootstrap.min.css';
Ispentageswonderingwhyitwasnotworkingdespitehavingimportedreact-bootstrap
Hopethishelps
Itworks💪thankyouverymuch
Sorry,somethingwentwrong.
Signupforfree
tojointhisconversationonGitHub.
Alreadyhaveanaccount?
Signintocomment
Assignees
Nooneassigned
Labels
Noneyet
Projects
Noneyet
Milestone
Nomilestone
Linkedpullrequests
Successfullymergingapullrequestmayclosethisissue.
Noneyet
15participants
Youcan’tperformthatactionatthistime.
Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession.
Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.