I am using react bootstrap trying to display a simple 2x2 grid. This should work fairly simply, but both the columns and the rows display vertically on all screen sizes. It is supposed to look like this:
A B
A B
but instead looks like this:
A
B
A
B
Here is the code:
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Home from './Home.js';
import * as serviceWorker from './serviceWorker';
import CustomNavBar from './CustomNavBar.js';
import { Col, Row, Grid, DropdownButton, Button} from 'react-bootstrap';
const grid = (<div style={{backgroundColor: '#801903', color: '#ffff'}}>
<Grid>
<Row sm={12}>
<Col sm={6}>A</Col>
<Col sm={6}>B</Col>
</Row>
<Row sm={12}>
<Col sm={6}>A</Col>
<Col sm={6}>B</Col>
</Row>
</Grid>
</div>);
ReactDOM.render(grid, document.getElementById('root'));
serviceWorker.unregister();
Output:
