How do you return the div element

How do you return the div element
0

#1

Tell us what’s happening:

Your code so far



class MyComponent extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    // change code below this line
    return  (
    <h1> Hello React! </h1>
    );
    // 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/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react/create-a-react-component


#2

Well, currently you are only returning an h1 element. The instructions tell you to return a div element which contains an h1 element.

Also, make sure your h1 element has the exact text specified. Your h1 element’s text has some extra spaces.


#3

Nest your <h1> element within a <div> element


#4

oh ok thanks i think i understand now.