Created
March 15, 2021 03:06
-
-
Save night-fury-rider/47b12aa691aaf6c60f97a1c2f401096b to your computer and use it in GitHub Desktop.
React API call using Axios
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
const getDashboardData = ()=> { | |
return axios.get('https://demo1926272.mockable.io/getInvestments'); | |
} | |
const UVDashboardApi = { | |
getDashboardData: getDashboardData | |
}; | |
export default UVDashboardApi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment