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
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/