Created
September 19, 2016 00:41
-
-
Save DylanPiercey/73dd1338e4f6f2b338414b370df90f89 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 'isomorphic-fetch' | |
fetch('http://www.google.com/index.html') | |
.then((response) => response.text()) | |
.then((html) => { | |
// Work with the body. | |
}) | |
.catch((e) => { | |
console.log(`Got error: ${e.message}`); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment