React JSX repeat or loop a component

Simple use the below code to repeat a component for X times

{
  [...Array(8)].map((e, i) => <span className="className" key={i}>Contennt here</span>)
}