Error: Write a React Component from Scratch

Error: Write a React Component from Scratch
0
#1

Tell us what’s happening:
unable to pass the test. see the error in screenshot.

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-mode'));

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

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

#2

Just a typo, the element id is challenge-node, not “mode”.

#3

Despite the typographical error, having corrected the mistake, the error still persists.

#4

Problem solved! Thank so much.