How to include bootstrap css and js in reactjs app?

后端 未结 19 1178
既然无缘
既然无缘 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条回答
  •  囚心锁ツ
    2020-12-04 05:43

    npm install --save bootstrap 
    

    and add this import statement into your index.js file

    import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
    

    or You could simply add CDN in your index.html file.

提交回复
热议问题