Making API calls using Axios
During the process of building out an React app that works with a Rails 5.1 API, I had to consider an approach on how to make a React component talk to the Rails API endpoint for getting all the data and display them successfully. I had to make an AJAX call to the API in a…