const n = 8; {[...Array(n)].map((elementInArray, index) => ( <div className="" key={index}> Whatever needs to be rendered repeatedly... </div> ) )}