Write a React Component from Scratch help i'm stuck here

Tell us what’s happening:

Your code so far


// change code below this line

class MyComponent extends React.Component {
  constructor(props) {
    super(props);
    
  }

  render() {
    return (
         <div>
        <h1>My First React Component</h1>
        
        
         ReactDOM.render(
     
          document.getElementById('challenge-node'));

       
      </div>
       
    );
  }
}

Your browser information:

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

Link to the challenge:

You need to place the ReactDOM call outside of your component, and also specify the comonent you want to render.
In order for that to work, move that function to the bottom of your file, and add this:

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