-
-
Save Nilanth/33de507287af8300571c2cc9c62b9cfd to your computer and use it in GitHub Desktop.
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
import { getRequest } from 'axiosClient'; | |
async function fetchUser() { | |
try { | |
const user = await getRequest('users'); | |
} catch(error) { | |
//Log errors | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment