Handle API Calls Using async await Inside the useEffect Hook in React
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 ...
blog.yogeshchavan.dev3 min read
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 :)