Why 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 ...
shubhambhoj.hashnode.dev1 min read