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 react;
import react-bootstrap/dist/react-bootstrap.min.js;
import bootstrap/dist/css/bootstrap.min.css;
import { Grid, Row, Col } from react-bootstrap;
import MuiThemeProvider from material-ui/styles/MuiThemeProvider;
import AppBar from material-ui/AppBar;
<Grid fluid>
<Row>
<Col xs={12} md={12}>
<AppBar title=Title
iconClassNameRight=muidocs-icon-navigation-expand-more/>
</Col>
</Row>
<Row>
<Col xs={4} md={4}>
<h1>Hello</h1>
</Col>
<Col xs={8} md={8} >
<h1>Hello World!</h1>
</Col>
</Row>
</Grid>
I'm getting the following output:
If I remove xs and md
from <Col>
then the issue gets fixed.
Importing twitter-bootstrap is causing this issue. If I remove the twitter-bootstrap import then the bootstrap styling doesn't work.
This issue is same as Twitter-Bootstrap's issue, but I'm not able to fix it in React-Bootstrap.