Javascript – How to use Dynamic array in useEffect hook in React?
i want to use a dynamic array as input in dependency array of useEffect hook. But the array is going as a string and so not triggering the hook in the correct way. const [formData,setFormData] = useState({ name: '', age:…