I am making promodoro clock .I wrote my code using react-bootstrap .it is working but the styles of default classes of bootstrap is not being added to the styles.it is just being stacked over one another.
import React, { Component } from "react";
import "./App.css";
import Grid from "react-bootstrap/lib/Grid";
import Row from "react-bootstrap/lib/Row";
import Col from "react-bootstrap/lib/Col";
class App extends Component {
render() {
return (
<div className="App">
<Grid className="main-container">
<h1>Promodoro Clock</h1>
<Row className="time-setters ">
<Col className="Session-time text-center" sm={6}>
<div>Session time</div>
<a href="#">+</a>
<span>25</span>
<a href="#">-</a>
</Col>
<Col className="Break-time text-center" sm={6}>
<div>Break time</div>
<a href="#">+</a>
<span>5</span>
<a href="#">-</a>
</Col>
</Row>
</Grid>
</div>
);
}
}
.App {
text-align: center;
}
html {
height: 100%;
}
body {
height: 100%;
}
.main-container {
max-width: 800px;
margin: 0 auto;
}
npm install bootstrap --saveand use it likeimport 'bootstrap/dist/css/bootstrap.min.css';https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.cssI heighly recoment to usereactstrapinstead of useReact-Bootstrap. reactstrap provide bootstrap4 support but React-Bootstrap is bootstrap 3