class Image extends Component {
state = { items: null }
componentDidMount() {
fetch("http://api.kai-zer.ru/dev/method/products.getAll")
.then((res) => res.json())
.then((data) => (this.setState({ items: data.response.items })))
}
render() {
const { items } = this.state;
return (
<div>
{items[number].image.url}
</div>
)
}
}