Pass an Array as Props - Error

Tell us what’s happening:

Your code so far

const List= (props) => {

class ToDo extends React.Component {
  constructor(props) {
  render() {
    return (
        <h1>To Do Lists</h1>
        <List tasks={['walk','run','rest']}/>
        <List tasks={['jump','dance','run']}/>

Your browser information:

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

Link to the challenge:

Space is a great thing: we should never take it for granted^^