Help Writing React Component

Tell us what’s happening:
It’s not passing the tests… Saying that I don’t have an h1.

Your code so far


// change code below this line
class MyComponent extends React.Component{
                 <h1>My First React Component!</h1>

Your browser information:

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

Challenge: Write a React Component from Scratch

Link to the challenge:

You have not closed the constructor method. Also, you are not using proper syntax for the render method. Pay close attention to where the { and } should go. Lastly, you need to review the lesson on how to use ReactDOM.render. You need to specify the component. <h1> is not a component. It is the element rendered by the component you created.

ok thank you so much!