Hi I am working on SPFx image carousel web-part using react responsive carousel.
I want that if user click on image on carousel it will show detail description of image in modal dialog on same page:
public render(): React.ReactElement<IReactCarouselProps> {
return (
<div className={styles.reactCarousel}>
<Carousel showThumbs={false} autoPlay={true} >
{this.state.items.map((imageList) => {
return (<div>
<img src={imageList.Image["Url"]} />
<p className="legend">{imageList.Title}</p>
</div>)
})}
</Carousel>
<div>
{this.state.items1.map((description) => {
return (<div>
<div dangerouslySetInnerHTML={{__html: description.Body}} />
</div>)
})}
</div>
</div>
);
}