import { useEffect } from 'react'; export function useMountDebug(label = 'Component') { useEffect(() => { console.log(label, 'mounted'); return () => { console.log(label, 'unmounted'); }; }, []); }