Complete the code to import the Button component from react-bootstrap.
import { [1] } from 'react-bootstrap';
The Button component is imported from react-bootstrap to use Bootstrap styled buttons in React.
Complete the code to render a primary Bootstrap button with the text 'Click me'.
<Button variant=[1]>Click me</Button>The variant prop controls the button style. "primary" gives the main blue Bootstrap style.
Fix the error in the code to correctly import and use the Container component from react-bootstrap.
import Container from 'react-bootstrap/[1]'; function App() { return <Container>Content here</Container>; }
The correct import path for the Container component is 'react-bootstrap/Container' with a capital C.
Fill both blanks to create a responsive grid with two columns using react-bootstrap.
<Container>
<Row>
<Col [1]>Column 1</Col>
<Col [2]>Column 2</Col>
</Row>
</Container>Using md={6} on both columns splits the row into two equal halves on medium and larger screens.
Fill all three blanks to create a Navbar with a brand name and a toggle button using react-bootstrap.
import { Navbar, [1], [2] } from 'react-bootstrap'; function MyNavbar() { return ( <Navbar bg="light" expand="lg"> <Navbar.Brand href="#home">MySite</Navbar.Brand> <Navbar.[3] aria-controls="basic-navbar-nav" /> </Navbar> ); }
The Nav and NavDropdown components are imported for navigation links, and Navbar.Toggle is used as the toggle button.
