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

0.1.0 • Public • Published

🎒 @hooks/unmount

React hook execute a callback on component unmount

NPM version Travis License

Install

npm i @hooks/unmount

Usage

useUnmount

useUnmount(callback: () => void, hook: (effect: EffectCallback, deps?: DependencyList) => void = useEffect)

Parameters

callback: () => void

Function to execute.

hook: (effect: EffectCallback, deps?: DependencyList) => void = useEffect

Hook to use, defaults to useEffect.

/@hooks/unmount/

    Package Sidebar

    Install

    npm i @hooks/unmount

    Weekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    3.06 kB

    Total Files

    6

    Last publish

    Collaborators

    • simmo