score:1

Accepted answer
fetch(`https://www.reddit.com/r/dogs.json`)
.then(response => {
        return response.json();
})
.then(json => {
    // doSomeThing(json.someProperty)
    // this.setState({jsonData: json});
})
.catch((error) => {
    // AHHHH! An Error!
});

score:0

fetch('http://API_CAL')
 .then(data => this.setState({data}) , reason => console.error(reason));

Related Query

More Query from same tag