Download axios
package by using npm install axios
When we are building web app at some point we need the app to communicate with the server. React is not concerned with the server side of the development process. We do that using HTTP library. We will be using the axios package for the purpose.
We will learn how to make a GET request using axios
and render the fetched data in our react component. Here we will be using {JSON} Placeholder which serves as our API endpoint.
Follow the video