Reac how to get useEffect to be only called once code example
Example: react run useeffect only once
useEffect(() => {
// Initialization code comes here
}, []);
useEffect(() => {
// Initialization code comes here
}, []);