I am using this carousel react-responsive-carousel for my demo application. But my carousel background image is not displayed properly. Here is my code
https://codesandbox.io/s/late-moon-d27jc?file=/src/App.js
import React, { Component } from "react";
import ReactDOM from "react-dom";
import "react-responsive-carousel/lib/styles/carousel.min.css"; // requires a loader
import { Carousel } from "react-responsive-carousel";
export default function App() {
return (
<div className="App">
<Carousel>
<div
style={{
backgroundImage:
'url("https://st.depositphotos.com/1073642/1263/i/600/depositphotos_12639328-stock-photo-glass-of-water-isolated-on.jpg")'
}}
>
<div>1</div>
</div>
<div
style={{
backgroundImage:
'url("https://images-na.ssl-images-amazon.com/images/I/61uYglgYmgL._SY550_.jpg")'
}}
>
<div>2</div>
</div>
<div
style={{
backgroundImage:
'url("https://www.shaze.in/pub/media/catalog/product/w/i/wine-glasse--_2__1.jpg")'
}}
>
<div>3</div>
</div>
</Carousel>
</div>
);
}