In create-react-app, adding Bootstrap 4?

后端 未结 5 1671
迷失自我
迷失自我 2021-02-07 08:01

Since create-react-app hides Webpack config without having to use eject, if I want to use something like reactstrap or react-bootstrap, should I eject or will I be

5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 08:46

    for BS5, new and not stable yet.

    npm i bootstrap@5.0.0-alpha1 --save
    

    then in the index.js file

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

提交回复
热议问题