Last active
January 14, 2021 19:37
-
-
Save sabesansathananthan/a20d65b8dd9691b86854a5d0aa0344a8 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((response) => response.json()) | |
.then((data) => console.log(data)) | |
.catch((error) => console.log(error)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment