Poor guidance on the challenge

I don’t under what it means by super() should be null or a function when previous lessons said this is how it’s done. tried passing MyComponent through nothing, tried passing nothing through same thing.

Your code so far

     class MyComponent extends React.Component(){
  constructor(props){
    super(props);
  }
  render(){
    return(
      <div>
        <h1>My Fist React Component!</h1>
      </div>
    )
  }
}

ReactDOM.render(<MyComponent/>,document.getElementById('challenge-node'))


class MyComponent extends React.Component(){
constructor(props){
  super(props);
}
render(){
  return(
    <div>
      <h1>My Fist React Component!</h1>
    </div>
  )
}
}

ReactDOM.render(<MyComponent/>,document.getElementById('challenge-node'))

Your browser information:

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

Challenge: Write a React Component from Scratch

Link to the challenge:

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

Thanks Ariel :slight_smile: can you help me with my code please ?

Hi! relka ,

sometimes I guess you really do need a second pair of eyes lol!!