Render a Class Component to the DOM -- last test

Render a Class Component to the DOM -- last test
0
#1

Tell us what’s happening:
I’m not getting an error, and the dom is rendering as expected, but I just can’t get it to pass the last test. What am I missing? Am I misunderstanding when it says "…within the div with the id challenge-node " ?

Your code so far



class TypesOfFood extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div>
        <h1>Types of Food:</h1>
        {/* change code below this line */}
        <Fruits />;
        <Vegetables />;
        {/* change code above this line */}
      </div>
    );
  }
};

// change code below this line
ReactDOM.render(<TypesOfFood />, document.getElementById('challenge-node'));

Your browser information:

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

Link to the challenge:
learn.freecodecamp.org/front-end-libraries/react/render-a-class-component-to-the-dom

#2

The last test is not expecting you to add those two semi-colons which affects what actually gets displayed to the browser. You notice there are two extra semi-colons showing (one below the Citrus list and the other below the Vegetables list). The challenge did not ask you to render semi-colons.

#3

Thank you thank you! @RandellDawson. I figured it was something simple