How to include bootstrap css and js in reactjs app?

后端 未结 19 1154
既然无缘
既然无缘 2020-12-04 05:07

I am newb to reactjs, I want to include bootstrap in my react app

I have installed bootstrap by npm install bootstrap --save

Now, want to load b

19条回答
  •  Happy的楠姐
    2020-12-04 05:30

    If you use CRA(create-react-app) in your project, you can add this:

    npm install react-bootstrap bootstrap
    

    If you use bootstrap in your app and if it's not working, then use this in index.html :

    
    

    I did the above to solve similar problem. Hopefully this is useful to you :-)

提交回复
热议问题