I want to make a list of fields depending on the number of the player that user has selected. I wanted to make something like this:
generatePaymentField() {
renderItem(item)
{
const width = '80%';
var items = [];
for(let i = 0; i < item.count; i++){
items.push(
{item.title}
{item.taskDataElements[0].description + " "}
BEGIN
{this.msToTime(item.minTatTimestamp) <= 0 ? "NOW" : this.msToTime(item.minTatTimestamp) + "hrs"}
)
}
return items;
}
render() {
return (this.renderItem(this.props.item))
}