How to use axios in your React App

First install the axios in your working directory

Get Request

We are using componentDidMount life time hooks to call the axios.get to get JSON data. Retrieved data will be put in state and will be used inside the the render() function