bradtraversy/infinite_scroll_react_unsplash

Two children with same key - fix

Closed this issue · 0 comments

fetchImages = () => {
const { count, start } = this.state;
this.setState({ start: start + count });
axios
.get(/api/photos?count=${count}&start=${this.state.start})
.then(res => this.setState({ images: this.state.images.concat(res.data) }));
};