React - Create a React Component

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

Почему мой код не правильный?

class MyComponent extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    // Change code below this line
return (<div> <h1> Hello React </h1> </div>); 


    // Change code above this line
  }
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.124 YaBrowser/22.9.5.710 Yowser/2.5 Safari/537.36

Challenge: React - Create a React Component

Link to the challenge:

There are two problems:

… with the text Hello React!.

Notice the exclamation point (!). It is part of the text.

Also, you’ve added a bunch of spaces:

return (<div> <h1> Hello React </h1> </div>);
             ↑    ↑           ↑     ↑

Those all get rendered to the DOM and confuse the test.

When I fix those, the test passes for me.