mirror of
https://github.com/streamich/react-use.git
synced 2025-12-08 18:02:14 +00:00
274 B
274 B
useMount
React lifecycle hook that call mount callback, when
component is mounted.
Usage
import {useMount} from 'react-use';
const Demo = () => {
useMount(() => console.log('MOUNTED'));
return null;
};
Reference
useMount(mount);