React-Bootstrap causing margins on left and right side

后端 未结 6 2449
逝去的感伤
逝去的感伤 2021-02-19 23:33

I\'m using React-Bootstrap in my React app. It is causing margin on the left and right side. I\'m using the following code:

import React, { Component } from \"re         


        
6条回答
  •  执念已碎
    2021-02-20 00:06

    I used react-bootstrap with next.js. I came up with short solution:

    
        ...
    
    

    Comment. bootstrap's css was imported in my _App.js

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

提交回复
热议问题