How to include bootstrap css and js in reactjs app?

后端 未结 19 1179
既然无缘
既然无缘 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:47

    After installing bootstrap in your project "npm install --save bootstrap@3.3.7" you have to move to the index.js file in the project SRC folder and import bootstrap from node module package.

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

    If you like you can get help from this video, sure it will help you a lot.

    Import Bootstrap In React Project

提交回复
热议问题