Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
const List = (props) => {
return <p>{props.tasks.join(", ")}</p>;
};
class ToDo extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<h1>To Do Lists</h1>
<h2>Today</h2>
<List tasks={[Eat, Read, Movies]}/>
<h2>Tomorrow</h2>
<List tasks={[Rest, Rest, Rest]}/>
</div>
);
}
};
**Your browser information:**
User Agent is: Mozilla/5.0 (Linux; Android 7.0; TECNO P701) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.70 Mobile Safari/537.36
Challenge: Pass an Array as Props
Link to the challenge: