@hooks/before-unload
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

🎒 @hooks/before-unload

React hook to provide a message prompt before the page is unloaded

NPM version Travis License

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.

Dependents (0)

Package Sidebar

Install

npm i @hooks/before-unload

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

3.52 kB

Total Files

6

Last publish

Collaborators

  • simmo