Skip to content

Instantly share code, notes, and snippets.

@edezekiel
Created December 21, 2018 13:22
Show Gist options
  • Save edezekiel/da0b953efa76baaadfcfb05b83fee2a0 to your computer and use it in GitHub Desktop.
Save edezekiel/da0b953efa76baaadfcfb05b83fee2a0 to your computer and use it in GitHub Desktop.
fetch-example
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