If you are a fan of async await syntax, then you might try using it in useEffect hook in React, but it does not work as expected. In this article, we will see how to handle that. Let’s write some code using promises first and then we will convert it ...

Markdown supported · ⌘↵ to post
It's really helpful.... looking forward to more such content especially about useContext and useReducer
Deepak Rawat
figuring things out
hey Yogesh, lovely article anyhow I have a doubt regarding API calls from react, is it secure if I am fetching data with basic auth, is the application secure if I store the API key as env variables? Any sort of help will be appreciated :)