Created
December 21, 2018 13:22
-
-
Save edezekiel/da0b953efa76baaadfcfb05b83fee2a0 to your computer and use it in GitHub Desktop.
fetch-example
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
fetch(url) | |
.then((resp) => resp.json()) // Transform the data into json | |
.then(function(data) { | |
// Create and append the li's to the ul | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment