DEV Community

Marius Espejo
Marius Espejo

Posted on • Updated on


React.js: How To Get Data From An API With Hooks and Axios

In this video I talk about the basics of making an API or HTTP request in a React.js application. I show examples of utilizing state and effect hooks, and how to manage loading and error states while making API requests with axios.

If you have any feedback, good/bad would love to hear it!

Oldest comments (0)

Need a better mental model for async/await?

Check out this classic DEV post on the subject.

⭐️🎀 JavaScript Visualized: Promises & Async/Await

async await