React modal window doesn't close
import c from ‘../Profile.module.css’; import { useState } from ‘react’; import { createPortal } from ‘react-dom’; import Modal from ‘../Modal/Modal’; const TransactionItem = (props) => { const modalRoot = document.querySelector(‘#root > div’); const [showModal, setShowModal] = useState(false); const short = str => str.substring(str.length – 4) + ‘…’ + str.substring(0, 5); const handleClose = () =>… Read More React modal window doesn't close