Babel code in React component to display tasks I'm trying to think of ways to clean up this component in my app so it looks more readable to other devs. This is the best I came up with so far. It's not that bad, but I think it could be a lot better. What do you guys think? How would you clean this code up to make it more readable?

const DisplayTasks = ({ tasksArray, removeTask, crossOutTask }) =&gt; { 
  return (
    &lt;div id="orderedList"&gt;
      &lt;ol&gt;
        {tasksArray.map((task, index) =&gt; (
          &lt;li onClick={ () =&gt; crossOutTask(index) } key={index} &gt;

            { task.crossedOut 
              ? &lt;strike&gt;{task.title}&lt;/strike&gt; 
              : task.title }

            &lt;button id="removeButton" onClick={ event =&gt; removeTask(event, index) } &gt;
              Remove
            &lt;/button&gt;
          &lt;/li&gt;
        ))}
      &lt;/ol&gt;
    &lt;/div&gt;
  );
};
```
This looks pretty good. I don't really have any big comments, since I found it pretty easy to read. Nits:


you could remove the wrapping div with the id orderedList... The ol tag serves the same purpose, plus it's not a very specific name. I think it probably makes more sense to add a class to the ol with a value like tasks.
Generally don't use the index as a key. React uses these to figure out what to redraw. If you have some sort of ID, use that; if not, you can probably just use the task title, or a title + index. You want this to be specific... if the key too specific the component will get redrawn too much (generally not a problem). If the key is to general, components will be "stale"... not redrawn with the proper values.


Look good!