Created
April 10, 2020 10:40
-
-
Save nithin69/1238c2a69039deee3c52baee63cff430 to your computer and use it in GitHub Desktop.
using of axios
This file contains 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
const url = "" | |
const fetchDetails = async () => { | |
try { | |
const { data } = await Axios.get(url); | |
console.log({ data }); | |
// Do Something | |
} catch (eror) { | |
// DoSomethong | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment