Hi I have installed bootstrap using the standard npm install react-bootstrap bootstrap command and implemented the carousel code from the bootstrap site but i don't get the carousel. Images are displaying one by one here's my code
import React, {Component} from 'react';
**import {Carousel} from 'react-bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';**
import CleanHands from '../Images/cleanhands.jpg';
import Heroes from '../Images/heroes.jpg';
class ImageCarousel extends Component {
render() {
return(
<Carousel>
<Carousel.Item>
<img
className="d-block w-100"
src={CleanHands}
alt="First slide"
style={{width:"40px", height:"40px"}}
/>
</Carousel.Item>
<Carousel.Item>
<img
className="d-block w-100"
src={Heroes}
alt="Third slide"
/>
</Carousel.Item>
<Carousel.Item>
<img
className="d-block w-100"
src={CleanHands}
alt="Third slide"
/>
</Carousel.Item>
</Carousel>
);
}
}
export default ImageCarousel;