The Fetch API

.then((response) => {
console.log("resolved", response);
.catch((err) => {
console.log("error retrieving data", err);

A random network

React js

What is state in React? The state of a component is the data that is being used and rendered inside our component at a particular time.

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

Increase traffic to your website

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