score:5

Accepted answer
{items.map((item, index) => (
  <div key={index}>Item #{index}</div>
))}

score:0

if(index % 2 == 1){
   return(
    <div>
      <span dangerouslySetInnerHTML={{ __html: item }}></span>
      <h1>Test Output/h1>
    </div>);
}

Related Query

More Query from same tag