Size0.15 kbView sourceuseUpdateEffectuseEffect without the initial effect.Installation npmpnpmyarnbunnpm install @1hook/use-update-effect Usage import { useUpdateEffect } from '@1hook/use-update-effect' Execute on dependency change: useUpdateEffect(() => console.log('State has changed'), [state])useUnmountEffectExecute the callback when the component unmounts (cleanup effect).useUserMediaAccess and manage media devices like camera and microphone.