Shubham SinghforShubham Developer's Blogshubhambhoj.hashnode.netยทMar 22, 2023Why can't we have asynchronous callback function in useEffect()Async calls in javascript can help us in API calls and fetching data from server, but why is it we can't use async calls with useEffect like shown below: useEffect( async () => { // api call or data fetch }, []) // It gives an ERROR... We can not ...26 readsReactAdd a thoughtful commentNo comments yetBe the first to start the conversation.