render component multiple times react code example Example: jsx repeat [...Array(n)].map((el, index) => <p key={index}>Item</p>)