My console is showing build error when i run this code?

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

const List = (props) => {

return <p>{props.tasks.join(", ")}</p>;


class ToDo extends React.Component {
constructor(props) {
render() {
  return (
      <h1>To Do Lists</h1>
      <List tasks={[Eat, Read, Movies]}/>
      <List tasks={[Rest, Rest, Rest]}/>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 7.0; TECNO P701) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.70 Mobile Safari/537.36

Challenge: Pass an Array as Props

Link to the challenge:

It is saying:

Build error, open your browser console to learn more.

Did you open the browser console? It is one of the most important tools a web developer has. Mine is open constantly while I’m working.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.