在React中使用Bootstrap

可以在react項目中執行以下命令安裝bootstrap

npm install bootstrap@3 --save

在使用的時候,直接在index.js文件導入即可

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

import 'bootstrap/dist/js/bootstrap';

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章