Skip to content

Latest commit

 

History

History

mount

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

🎒 @hooks/mount

React hook to execute callback on component mount

NPM version Travis License

Install

npm i @hooks/mount

Usage

useMount

useMount(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.