useMount
React lifecycle hook that calls a function after the component is mounted.
API
function useMount(callback: () => void): void;
Usage
import { useMount } from '@feedzai/js-utilities/hooks';
// a div with multiple refs
function Component() {
useMount(() => {
console.log("the component has mounted");
});
}