Pass an Array as Props - Error

Tell us what’s happening:

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={['walk','run','rest']}/>
        <h2>Tomorrow</h2>
        <List tasks={['jump','dance','run']}/>
      </div>
    );
  }
};

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react/pass-an-array-as-props/

Space is a great thing: we should never take it for granted^^