Pass an Array as Props - tests not working?!

Tell us what’s happening:
So I am really lost as to why this is not working at all. I hit run the test but nothing is happening.

Please advice, before I lose all of my hair :frowning:

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= { ["sleep","eat","code"] } />
         <h2>Tomorrow</h2>
        <List tasks= { ["Sleeping","watching tv","some freecodecamp"] } />
      </div>
    );
  }
};

Your browser information:

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

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

Hi Randell,

This is what I get:

You are getting that, because you are using invalid characters in your join method.

1 Like

ok thanks for the heads up, I will try and figure this out!

Done!! Thanks again Randell. :). These are the things I need to brush up on, spotting errors!