import { useEffect, useRef } from "react" export function MountProbe({name}: {name: string}) { const id = useRef(Math.random().toString(36).slice(2, 6)).current useEffect(() => { console.log('mounted:', name, id) return () => console.log('unmounted:', name, id) }, []) return null }