Skip to content

Instantly share code, notes, and snippets.

@paulbreslin
Created July 4, 2017 14:30
Show Gist options
  • Save paulbreslin/d00a5f9d1b0d030f88da67e991afd49a to your computer and use it in GitHub Desktop.
Save paulbreslin/d00a5f9d1b0d030f88da67e991afd49a to your computer and use it in GitHub Desktop.
fetch('https://your-domain.com/api/words')
.then( response => response.json())
.then( json => {
// Handle data
})
.catch( error => {
// Error handling
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment