Javascript – fetch data multiple times in one fetch
I have data in mongo. I am getting my data, but when see my console.log(). it show me data multiple times. Can you please tell me why is it happening and how to fix it? const [teams, setTeams] = useState([])…