Size0.20 kbView sourceuseMountEffectExecute the callback when the component mounts (first effect).Installation npmpnpmyarnbunnpm install @1hook/use-mount-effect Usage import { useMountEffect } from '@1hook/use-mount-effect' Execute a function on mount: useMountEffect(() => console.log('Mounted!'))useMergeRefsMerge refs, returns a callback ref.useMutationObserverThe MutationObserver API, reactified and simplified