UNPKG

@scrumble-nl/react-quick-modal

Version:

A quick and easy wrapper around react-bootstrap modal, you can add or remove a modal from anywhere in your application with a few simple steps.

12 lines (11 loc) 239 B
import { useModal } from './quick-modal'; var MyModal = function (_a) { return null; }; export var Test = function () { var modal = useModal(); modal.showModal(MyModal, { objectName: 'test', }); return null; };