On first Load useEffect hock Shows an error calling the api multiple time – Javascript
I'm new to React.js On the First Time load Code shows an error when i comment this part {data.advice} and run it shows me html it also calls API 2 times it gives an Error on Reload. how to fix…