Answers for "select everything but an element in react"

1

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;
Posted by: Guest on May-19-2021

Code answers related to "select everything but an element in react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language