[ {
"id": 1569,
"link": "https://site.com"
} ]
<div>
<span>Здесь ID</span>
<span>Здесь значение link</span>
</div>
...
state = {
json: [],
}
...
componentDidMount() {
fetch('https://site.com/data.json')
.then(response => response.json())
.then(json => this.setState({ json }));
}
...
render() {
const { json } = this.state;
return (
{json.map(({ id, link })) => (
<div>
<span>{id}</span>
<span>{link}</span>
</div>
)}
)
}
...