useeffect umnount
snippet in javascript

useeffect umnount

user5720

  useEffect(() => {
    return () => {
      console.log("cleaned up");
    };
  }, []);