make useEffect to only run on load code example Example: react run useeffect only once useEffect(() => { // Initialization code comes here }, []);