What am I doing wrong ? Create a React Component

Tell us what’s happening:

I don’t get what it is what I am doing wrong here

Your code so far

class MyComponent extends React.Component {
constructor(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/84.0.4147.105 Safari/537.36.

Challenge: Create a React Component

Link to the challenge:

1 Like

Hello, Kora.

Unfortunately, the tests are expecting the code you have, but without the spaces between the div and h1 tags.

We are currently discussing changing the tests, on GitHub to account for this.

1 Like