Write a React Component from Scratch - I 'm having some issues

Hello,

Below is my code

I am not sure why I am getting

MyComponent should render to the DOM.

Can someone please tell me what is the issue ? Thank you

Your code so far

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

    render(){
        return(
            <div>
            <h1>My First React Component!</h1>
            </div>
        );
    }
};

ReactDOM.render(MyComponent, document.getElementById('root'));

Your browser information:

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

Link to the challenge:

You should render the component in the div with the challenge-node id, not root.

MyComponent in the render function should be in JSX form (like <MyComponent />)