Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 217 Bytes

use-effect-after-mount.md

File metadata and controls

11 lines (8 loc) · 217 Bytes

useEffectAfterMount

Same as React's useEffect, except that it will skip the initial render.

Example

useEffectAfterMount(() => {
  console.log('doot doot doot!')
}, [/* effect dependencies */]);