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

0.1.0 • Public • Published

🎒 @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.

Package Sidebar

Install

npm i @hooks/mount

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

3.02 kB

Total Files

6

Last publish

Collaborators

  • simmo