React hook to provide a message prompt before the page is unloaded
npm install @hooks/before-unloadReact hook to provide a message prompt before the page is unloaded
``bash`
npm i @hooks/before-unload
`ts`
useBeforeUnload(message?: string)
#### Parameters
##### message?: string`
If provided, will cause the message to be shown before the page is unloaded.