React Add Spaces Between Items in an Array

Today I learned the magic of Array.flatMap() in React:

<ul>
  {items.flatMap(item => [
    <li key={item.id}>{item.text}</li>,
    " "
  ])}
</ul>

Spaces don’t need a key, so you can easily add them between other nodes.