Reactjs – Should we call an API inside useEffect in React?
I heard that it is not a good practice to call an api inside useEffect, also thats why in dev mode useEffect runs twice.I am not sure about it, but if not useEffect, then what else? Need fellow devs suggestions…