Create a React Component Challenge

Create a React Component Challenge
0

#1

Tell us what’s happening:
I’m stuck at this challenge .The error is coming ‘The h1 header should contain the string Hello React!.’ .

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; rv:61.0) Gecko/20100101 Firefox/61.0.

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


#2

remove the extra dot at the end…


#3

:see_no_evil: Thanks.
silly mistake