React - Render a Class Component to the DOM

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

class TypesOfFood extends React.Component {
  constructor(props) {
  render() {
    return (
        <h1>Types of Food:</h1>
        {/* Change code below this line */}

<Vegetables />
        {/* Change code above this line */}

ReactDom.render(< TypesOfFood/>,document.getElementById("challenge-node")); 

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

React - Render a Class Component to the DOM

Hello and welcome to the community!

Check that the letters match the case:


hello and welcome to fcc forum :slight_smile:

  • syntax error!! as starstuck pointed out

happy coding :slight_smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.