Problem with this exercise

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>
        </div>
    );
  }  
};

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0.

Link to the challenge:

The issue is the spaces between the h1 tag and the First Word and the ! and the closing tag. If you just add <h1>My First React Component!</h1> it’ll pass.

1 Like