useEffect(() => { // add async function here return () => { console.log("This will be logged on unmount"); } })