how to stop useeffect loop code example Example: eliminate infinite loop useEffect useEffect(() => { setIngredients({}); }, []);