react-dialog-window
v1.0.3
Published
Custom dialogs windows
Downloads
14
Maintainers
Readme
Add to index.html <div id="modal-root"></div>
.
Pass the specified id to elementId.
import { useDialogWindow } from "react-dialog-window";
Create an object with the settings:
Pass the settings to the hook: const { open } = useDialogWindow(settings);
<button onClick={open}>open</button>