Created
January 16, 2019 20:00
-
-
Save OleksivO/9e3128ccd38cbbfe46937a5490a66f8d to your computer and use it in GitHub Desktop.
the description for this gist
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
try { | |
const successResponse = yield fetch('url'); | |
const parsedResponse = yield successResponse.json(); | |
console.log(successResponse); | |
} catch(error) { | |
console.log(error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment