React - Render a Class Component to the DOM

Tell us what’s happening:

Need help to fix the issue and any old submissions also

Your code so far

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

// Change code below this line

Your browser information:

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

Challenge Information:

React - Render a Class Component to the DOM

Hi there! You aren’t need to add the id and value within the div.

ReactDOM.render(<ComponentToRender />, targetNode)

Add that line below with TypesOfFood component and id value challenge-node