The Fetch API

fetch("./data/list.json")
.then((response) => {
console.log("resolved", response);
})
.catch((err) => {
console.log("error retrieving data", err);
});


A random network


React js


“Don’t be satisfied with stories, how things have gone with others. Unfold your own myth” Rumi




Alice Moretti

Frontend-developer, nature addicted, runner, coffee & yoga lover living in Helsinki.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store