I am creating an app with react-bootstrap and tried to create a layout. How to use the remaining space in main other than the header and footer?
import Row from "react-bootstrap/Row";
import Col from "react-bootstrap/Col";
import { Navbar } from "react-bootstrap";
export default function App() {
return (
<Row>
<Col xs={12}>
<Navbar bg="dark" variant="dark">
<Navbar.Brand href="#home" className="bold-text">
NAV
</Navbar.Brand>
</Navbar>
</Col>
<Col xs={12}>
<div
className="mt-4"
style={{
backgroundColor: "#cbcbcb"
}}
>
Main Content
</div>
</Col>
<Col xs={12}>
<Navbar
fixed="bottom"
bg="dark"
variant="dark"
className="justify-content-md-center"
>
<Navbar.Brand href="#home" className="text-center">
Footer
</Navbar.Brand>
</Navbar>
</Col>
</Row>
);
}
Link for Output : https://codesandbox.io/embed/affectionate-noether-hkk6z?fontsize=14&hidenavigation=1&theme=dark
Thanks in Advance