[Solved] What is the problem with my code that makes it repeat 5 times
Remove obj(keys) (it creates an unnecessary additional loop) and instead just simply map over this.state.value. Then use a unique property for the key (ideally this should be an id that was assigned by your database). import React, { Component } from “react”; class App extends Component { state = { value: [{ id: “b5dc-58f6-u3ga-fbb4”, title: … Read more