select everhyting but a element in react code example

Example: select everything but an element in react

import reactDom from "react-dom";
import history from "../history";

const Modal = () => {
  return reactDom.createPortal(
    <div
      onClick={() => history.push("/")}
      className="ui dimmer modals visible active"
    >
      <div
        onClick={(e) => e.stopPropagation()}
        id="myModal"
        className="ui standard modal visible active"
      >
        <div className="header">Delte Streams</div>
        <div className="content">
          Are you sure you want to delete this stream ?
        </div>
        <div className="actions">
          <button className="ui primary button">Delete</button>
          <button className="ui button">Cancel</button>
        </div>
      </div>
    </div>,
    document.querySelector("#modal")
  );
};

export default Modal;