how to repeat a peice of code for n times with different ids in react code example Example: react repeat [...Array(n)].map((el, index) => <p key={index}>Item</p>)