1.0.3 • Published 2 years ago

react-dialog-window v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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>