@hooks/before-unload
v0.1.0
Published
React hook to provide a message prompt before the page is unloaded
Downloads
3
Maintainers
Readme
🎒 @hooks/before-unload
React hook to provide a message prompt before the page is unloaded
Install
npm i @hooks/before-unload
Usage
useBeforeUnload
useBeforeUnload(message?: string)
Parameters
message?: string
If provided, will cause the message to be shown before the page is unloaded.