const elements = [] //..some array const items = [] for (const [index, value] of elements.entries()) { items.push(<Element key={index} />) }