I cant find the bug

Tell us what’s happening:

i cant find the problem i dont know why its not working

Your code so far

// change code below this line
// change code below this line
class MyComponent extends React.Component{
  constructor(props) {
render() {
  return (
      <h1>My First React Component!</h1>


  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/80.0.3987.116 Safari/537.36.

Challenge: Write a React Component from Scratch

Link to the challenge:

Welcome, okechukwu.

The issue is in this last line:

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

Start from there.

Hope this helps

@okechukwu.nwosu21 You might want to review the previous challenge, which shows you how to properly use the ReactDOM.render method.

Hello @okechukwu.nwosu21 Welcome!

@Sky020 gave you almost the answer, however another hint: maybe you’re confusing component’s call with variable’s call. Try to identify this difference it will give you the answer.