Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created December 30, 2018 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandeepmittal/0e271be0da4b1fb65c9f548a2168febd to your computer and use it in GitHub Desktop.
Save amandeepmittal/0e271be0da4b1fb65c9f548a2168febd to your computer and use it in GitHub Desktop.
async function getUser() {
try {
const response = await axios.get('/user?ID=54321');
console.log(response);
} catch (error) {
console.error(error);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment