Cant pass an array as props challenge

Tell us what’s happening:
i believe i am missing out a simple detail but i can’t figure it out.
pls i need help

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={["workout", "chores", "eat"]} />
      <h2>Tomorrow</h2>
      <List tasks={["push ups", "clean up", "code"]} />
      { /* change code above this line */ }
    </div>
  );
}
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: Pass an Array as Props

Link to the challenge:

add a space after the comma

props.tasks.join(",  ")

Screenshot at May 02 11-07-31

1 Like