Two children with same key - fix
Closed this issue · 0 comments
vipinkrishna commented
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) }));
};