<div className="general">
{this.props.filteredBooks.map((item, index) =>
<div className="book-item" key={index}>
<div className="size-bg" onClick={this.openModal}>
<img src={item.Image}/>
</div>
<h3>{item.Name}</h3>
<p>{item.Author}</p>
<div className="rating" key={index}>
<img src={item.ImageRating} />
</div>
<Modal
isOpen={this.state.modalIsOpen}
ariaHideApp={false}
onRequestClose={this.handleCloseModal}
className="Modal"
overlayClassName="Overlay"
>
<div className="image-modal">
<img src={item.Image}/>
</div>
<button onClick={this.closeModal}>Закрыть модальное окно</button>
</Modal>
</div>