Fetch data clientside with promises
const url = 'http://api.fetchurl.com' | |
fetch(url).then((response) => { | |
response.json().then((data) => { | |
console.log(data) | |
}) | |
}) | |
// expected output: JSON Object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment