Pass an Array as Props getting back Cannot read property 'join' of undefined

Tell us what’s happening:

Your code so far


const List= (props) => {
  { /* change code below this line */ }
  return <p>{props.tasks.join(', ')}</p>
  { /* change code above this line */ }
};

class ToDo extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div>
        <h1>To Do Lists</h1>
        <h2>Today</h2>
        { /* change code below this line */ }
        <List tasks={["Walk", "Cook", "Bake"]} />
        <List/>
        <h2>Tomorrow</h2>
        <List/>
        <List tasks={["Study", "Code", "Eat"]}/>
        { /* change code above this line */ }
      </div>
    );
  }
};

Your browser information:

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

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

You have two extra list components that aren’t passing any props. Try removing that and see if that fixes your issue.

thanks i noticed that too this morning