I am using "react": "^17.0.2",
my API call runs twice when I use useEffect on a modal popup
useEffect(() => {
console.log('kbghjdfhgd');
}, []);
when I used it in modal pop up it ran twice but if I used it in an app.js it ran once only
I am new to react not sure what went wrong in it.