Press n or j to go to the next uncovered block, b, p or k for the previous block.
import { useEffect } from "react" export function useUnmountEffect(callback: () => void) { return useEffect(() => () => callback(), []) }