The last challenge demonstrated how to pass information from a parent component to a child component as <code>props</code> or properties. This challenge looks at how arrays can be passed as <code>props</code>. To pass an array to a JSX element, it must be treated as JavaScript and wrapped in curly braces.
The child component then has access to the array property <code>colors</code>. Array methods such as <code>join()</code> can be used when accessing the property.
This will join all <code>colors</code> array items into a comma separated string and produce:
<code><p>green, blue, red</p></code>
Later, we will learn about other common methods to render arrays of data in React.
</section>
## Instructions
<sectionid='instructions'>
There are <code>List</code> and <code>ToDo</code> components in the code editor. When rendering each <code>List</code> from the <code>ToDo</code> component, pass in a <code>tasks</code> property assigned to an array of to-do tasks, for example <code>["walk dog", "workout"]</code>. Then access this <code>tasks</code> array in the <code>List</code> component, showing its value within the <code>p</code> element. Use <code>join(", ")</code> to display the <code>props.tasks</code>array in the <code>p</code> element as a comma separated list. Today's list should have at least 2 tasks and tomorrow's should have at least 3 tasks.
</section>
## Tests
<sectionid='tests'>
```yml
tests:
- text: The <code>ToDo</code> component should return a single outer <code>div</code>.
- text: Both instances of the <code>List</code> component should have a property called <code>tasks</code> and <code>tasks</code> should be of type array.