How to customize bootstrap 4 in reactjs app with reactstrap dependency?

后端 未结 2 1938
野的像风
野的像风 2021-02-09 07:19

I start developing a React app with reactstrap. I followed the Get Started running the following commands :

npm install -g create-react-app
create-react-app my-a         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-09 08:00

    You should create SCSS file in your project structure. Include defal=ult bootstrap styles using scss import

    @import "node_modules/bootstrap/scss/bootstrap";
    

    and after that reassign styles.

    But first thing you should to do is adjust your webpack to understand .scss file extensions

提交回复
热议问题