Add object iteration & give results as an array to Reactjs