Created
January 6, 2021 12:05
-
-
Save sabesansathananthan/62766fd12200e104215499f33c10b20f to your computer and use it in GitHub Desktop.
Axios Vs Fetch
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
fetch(url) | |
.then((res) => { | |
// handle response | |
}) | |
.catch((error) => { | |
// handle error | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment